1 Star 0 Fork 126

ganqx/src-qemu

forked from src-openEuler/qemu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hw-vfio-hct-update-support-ccp-count-to-48.patch 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
Jiabo Feng 提交于 2024-11-30 08:43 . QEMU update to version 8.2.0-25:
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ganqx/src-qemu.git
git@gitee.com:ganqx/src-qemu.git
ganqx
src-qemu
src-qemu
master

搜索帮助