diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2013-10-23 12:26:34 -0400 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2014-03-21 08:42:39 -0400 |
commit | d938dc55225a7212e7f31c5a8571da304cc3de16 (patch) | |
tree | 082b29c296ab2458d8365969bb85af23fe4a0dde /include/uapi/linux/kvm.h | |
parent | 36c95494609cd6d2541c08e806b4d6bc401bc53f (diff) |
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.
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r-- | include/uapi/linux/kvm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index a7518be31d53..46ea1b470c76 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -741,6 +741,7 @@ struct kvm_ppc_smmu_info { | |||
741 | #define KVM_CAP_EXT_EMUL_CPUID 95 | 741 | #define KVM_CAP_EXT_EMUL_CPUID 95 |
742 | #define KVM_CAP_HYPERV_TIME 96 | 742 | #define KVM_CAP_HYPERV_TIME 96 |
743 | #define KVM_CAP_IOAPIC_POLARITY_IGNORED 97 | 743 | #define KVM_CAP_IOAPIC_POLARITY_IGNORED 97 |
744 | #define KVM_CAP_ENABLE_CAP_VM 98 | ||
744 | 745 | ||
745 | #ifdef KVM_CAP_IRQ_ROUTING | 746 | #ifdef KVM_CAP_IRQ_ROUTING |
746 | 747 | ||
@@ -1076,6 +1077,10 @@ struct kvm_s390_ucas_mapping { | |||
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) |