代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/qemu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 3af7045d3aea901d366f4f6dee51e70998351698 Mon Sep 17 00:00:00 2001
From: Yabin Li <liyabin@hygon.cn>
Date: Tue, 23 Apr 2024 15:38:48 +0800
Subject: [PATCH] hw/vfio/hct: update support ccp count to 48.
Signed-off-by: Yabin Li <liyabin@hygon.cn>
Signed-off-by: yangdepei <yangdepei@hygon.cn>
---
hw/vfio/hct.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/hw/vfio/hct.c b/hw/vfio/hct.c
index 476e86c61d..790bb78439 100644
--- a/hw/vfio/hct.c
+++ b/hw/vfio/hct.c
@@ -28,7 +28,7 @@
#include "qapi/error.h"
#include "hw/qdev-properties.h"
-#define MAX_CCP_CNT 16
+#define MAX_CCP_CNT 48
#define PAGE_SIZE 4096
#define HCT_SHARED_MEMORY_SIZE (PAGE_SIZE * MAX_CCP_CNT)
#define CCP_INDEX_BYTES 4
@@ -43,7 +43,7 @@
#define HCT_SHARE_DEV "/dev/hct_share"
-#define HCT_VERSION_STRING "0.2"
+#define HCT_VERSION_STRING "0.5"
#define DEF_VERSION_STRING "0.1"
#define VERSION_SIZE 16
@@ -281,15 +281,14 @@ static int hct_api_version_check(void)
memcpy(ctrl.version, DEF_VERSION_STRING, sizeof(DEF_VERSION_STRING));
ret = ioctl(hct_data.hct_fd, HCT_SHARE_OP, &ctrl);
if (ret < 0) {
- error_report("ret %d, errno %d: fail to get hct.ko version, please "
- "update hct.ko to version 0.2.\n",
- ret, errno);
+ error_report("ret %d, errno %d: fail to get hct.ko version.\n", ret,
+ errno);
return -1;
} else if (memcmp(ctrl.version, HCT_VERSION_STRING,
sizeof(HCT_VERSION_STRING)) < 0) {
- error_report("The API version %s is larger than hct.ko version %s, "
- "please update hct.ko to version 0.2\n",
- HCT_VERSION_STRING, ctrl.version);
+ error_report("The hct.ko version is %s, please upgrade to version %s "
+ "or higher.\n",
+ ctrl.version, HCT_VERSION_STRING);
return -1;
}
--
2.41.0.windows.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。