History

KVM: Add per-vm capability enablement.

Allow KVM_ENABLE_CAP to act on a vm as well as on a vcpu. This makes more sense when the caller wants to enable a vm-related capability. s390 will be the first user; wire it up.

Cornelia Huck committed 13 years ago

Commit d938dc51 parent 36c95493 files · +33 −2Browse files

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

Unified · Split

include/uapi/linux/kvm.h+5−0
@@ -741,6 +741,7 @@ struct kvm_ppc_smmu_info { · 740 unmodified lines
741741 #define KVM_CAP_EXT_EMUL_CPUID 95
742742 #define KVM_CAP_HYPERV_TIME 96
743743 #define KVM_CAP_IOAPIC_POLARITY_IGNORED 97
744+#define KVM_CAP_ENABLE_CAP_VM 98
744745
745746 #ifdef KVM_CAP_IRQ_ROUTING
746747
@@ -1076,6 +1077,10 @@ struct kvm_s390_ucas_mapping { · 329 unmodified lines
10761077 /* Available with KVM_CAP_DEBUGREGS */
10771078 #define KVM_GET_DEBUGREGS _IOR(KVMIO, 0xa1, struct kvm_debugregs)
10781079 #define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
1080+/*
1081+ * vcpu version available with KVM_ENABLE_CAP
1082+ * vm version available with KVM_CAP_ENABLE_CAP_VM
1083+ */
10791084 #define KVM_ENABLE_CAP _IOW(KVMIO, 0xa3, struct kvm_enable_cap)
10801085 /* Available with KVM_CAP_XSAVE */
10811086 #define KVM_GET_XSAVE _IOR(KVMIO, 0xa4, struct kvm_xsave)