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
741#define KVM_CAP_EXT_EMUL_CPUID 95741#define KVM_CAP_EXT_EMUL_CPUID 95
742#define KVM_CAP_HYPERV_TIME 96742#define KVM_CAP_HYPERV_TIME 96
743#define KVM_CAP_IOAPIC_POLARITY_IGNORED 97743#define KVM_CAP_IOAPIC_POLARITY_IGNORED 97
744#define KVM_CAP_ENABLE_CAP_VM 98
744 745
745#ifdef KVM_CAP_IRQ_ROUTING746#ifdef KVM_CAP_IRQ_ROUTING
746 747
@@ -1076,6 +1077,10 @@ struct kvm_s390_ucas_mapping { · 329 unmodified lines
1076/* Available with KVM_CAP_DEBUGREGS */1077/* Available with KVM_CAP_DEBUGREGS */
1077#define KVM_GET_DEBUGREGS _IOR(KVMIO, 0xa1, struct kvm_debugregs)1078#define KVM_GET_DEBUGREGS _IOR(KVMIO, 0xa1, struct kvm_debugregs)
1078#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)1079#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 */
1079#define KVM_ENABLE_CAP _IOW(KVMIO, 0xa3, struct kvm_enable_cap)1084#define KVM_ENABLE_CAP _IOW(KVMIO, 0xa3, struct kvm_enable_cap)
1080/* Available with KVM_CAP_XSAVE */1085/* Available with KVM_CAP_XSAVE */
1081#define KVM_GET_XSAVE _IOR(KVMIO, 0xa4, struct kvm_xsave)1086#define KVM_GET_XSAVE _IOR(KVMIO, 0xa4, struct kvm_xsave)