提交 9184f5be 编写于 作者: G Gu Zitao 提交者: Zheng Zengkai

sw64: kvm: add definitions for kvm

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I4SPZD
CVE: NA

-------------------------------

Add KVM_SW64_VCPU_INIT definition for SW64 vcpu init. Introduce
KVM_SW64_GET_VCB and KVM_SW64_SET_VCB definitions to save and
restore vcpu's context for hot-snapshot.

Signed-off-by: Gu Zitao <guzitao@wxiat.com> #openEuler_contributor
Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 0ca85147
......@@ -1415,6 +1415,11 @@ struct kvm_s390_ucas_mapping {
#define KVM_SET_PMU_EVENT_FILTER _IOW(KVMIO, 0xb2, struct kvm_pmu_event_filter)
#define KVM_PPC_SVM_OFF _IO(KVMIO, 0xb3)
/* ioctl for SW vcpu init */
#define KVM_SW64_VCPU_INIT _IO(KVMIO, 0xba)
#define KVM_SW64_GET_VCB _IO(KVMIO, 0xbc)
#define KVM_SW64_SET_VCB _IO(KVMIO, 0xbd)
/* ioctl for vm fd */
#define KVM_CREATE_DEVICE _IOWR(KVMIO, 0xe0, struct kvm_create_device)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册