History

KVM: x86: declare Xen HVM shared info capability and add test case

Instead of adding a plethora of new KVM_CAP_XEN_FOO capabilities, just add bits to the return value of KVM_CAP_XEN_HVM.

David Woodhouse committed 5 years ago

Commit 8d4e7e81 parent 40da8cc4 files · +175 −1Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/kvm.h+3−0
@@ -1152,6 +1152,7 @@ struct kvm_x86_mce { · 1151 unmodified lines
11521152 #ifdef KVM_CAP_XEN_HVM
11531153 #define KVM_XEN_HVM_CONFIG_HYPERCALL_MSR (1 << 0)
11541154 #define KVM_XEN_HVM_CONFIG_INTERCEPT_HCALL (1 << 1)
1155+#define KVM_XEN_HVM_CONFIG_SHARED_INFO (1 << 2)
11551156
11561157 struct kvm_xen_hvm_config {
11571158 __u32 flags;
@@ -1604,6 +1605,7 @@ struct kvm_xen_hvm_attr { · 446 unmodified lines
16041605 } u;
16051606 };
16061607
1608+/* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_SHARED_INFO */
16071609 #define KVM_XEN_ATTR_TYPE_LONG_MODE 0x0
16081610 #define KVM_XEN_ATTR_TYPE_SHARED_INFO 0x1
16091611 #define KVM_XEN_ATTR_TYPE_UPCALL_VECTOR 0x2
@@ -1621,6 +1623,7 @@ struct kvm_xen_vcpu_attr { · 11 unmodified lines
16211623 } u;
16221624 };
16231625
1626+/* Available with KVM_CAP_XEN_HVM / KVM_XEN_HVM_CONFIG_SHARED_INFO */
16241627 #define KVM_XEN_VCPU_ATTR_TYPE_VCPU_INFO 0x0
16251628 #define KVM_XEN_VCPU_ATTR_TYPE_VCPU_TIME_INFO 0x1
16261629