1 Star 0 Fork 126

ganqx/src-qemu

forked from src-openEuler/qemu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
linux-headers-update-kernel-headers-to-include-CSV3-.patch 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
Jiabo Feng 提交于 2024-12-12 17:01 . QEMU update to version 8.2.0-26:
From 454079664e1492eeb9b90d1d05598e84dc436f11 Mon Sep 17 00:00:00 2001
From: jiangxin <jiangxin@hygon.cn>
Date: Fri, 17 Jun 2022 09:25:19 +0800
Subject: [PATCH] linux-headers: update kernel headers to include CSV3
migration cmds
Four new migration commands are added to support CSV3 migration.
KVM_CSV3_SEND_ENCRYPT_DATA/KVM_CSV3_RECEIVE_ENCRYPT_DATA cmds are
used to migrate guest's pages.
KVM_CSV3_SEND_ENCRYPT_CONTEXT/KVM_CSV3_RECEIVE_ENCRYPT_CONTEXT cmds
are used to migration guest's runtime context.
Signed-off-by: Xin Jiang <jiangxin@hygon.cn>
Signed-off-by: hanliyang <hanliyang@hygon.cn>
---
linux-headers/linux/kvm.h | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 8487d0889b..8543db844e 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -2115,6 +2115,12 @@ enum csv3_cmd_id {
KVM_CSV3_INIT = KVM_CSV3_NR_MIN,
KVM_CSV3_LAUNCH_ENCRYPT_DATA,
KVM_CSV3_LAUNCH_ENCRYPT_VMCB,
+ KVM_CSV3_SEND_ENCRYPT_DATA,
+ KVM_CSV3_SEND_ENCRYPT_CONTEXT,
+ KVM_CSV3_RECEIVE_ENCRYPT_DATA,
+ KVM_CSV3_RECEIVE_ENCRYPT_CONTEXT,
+
+ KVM_CSV3_NR_MAX,
};
struct kvm_csv3_launch_encrypt_data {
@@ -2127,6 +2133,38 @@ struct kvm_csv3_init_data {
__u64 nodemask;
};
+struct kvm_csv3_send_encrypt_data {
+ __u64 hdr_uaddr;
+ __u32 hdr_len;
+ __u64 guest_addr_data;
+ __u32 guest_addr_len;
+ __u64 trans_uaddr;
+ __u32 trans_len;
+};
+
+struct kvm_csv3_send_encrypt_context {
+ __u64 hdr_uaddr;
+ __u32 hdr_len;
+ __u64 trans_uaddr;
+ __u32 trans_len;
+};
+
+struct kvm_csv3_receive_encrypt_data {
+ __u64 hdr_uaddr;
+ __u32 hdr_len;
+ __u64 guest_addr_data;
+ __u32 guest_addr_len;
+ __u64 trans_uaddr;
+ __u32 trans_len;
+};
+
+struct kvm_csv3_receive_encrypt_context {
+ __u64 hdr_uaddr;
+ __u32 hdr_len;
+ __u64 trans_uaddr;
+ __u32 trans_len;
+};
+
#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1)
#define KVM_DEV_ASSIGN_MASK_INTX (1 << 2)
--
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

搜索帮助