diff options
| author | Alexander Graf <agraf@suse.de> | 2014-07-14 12:33:08 -0400 |
|---|---|---|
| committer | Alexander Graf <agraf@suse.de> | 2014-07-28 09:23:17 -0400 |
| commit | 92b591a4c46b103ebd3fc0d03a084e1efd331253 (patch) | |
| tree | c42fdfa42d3ed67eb530977768d6f614024815ec /include/uapi/linux | |
| parent | 784aa3d7fb6f729c06d5836c9d9569f58e4d05ae (diff) | |
KVM: Allow KVM_CHECK_EXTENSION on the vm fd
The KVM_CHECK_EXTENSION is only available on the kvm fd today. Unfortunately
on PPC some of the capabilities change depending on the way a VM was created.
So instead we need a way to expose capabilities as VM ioctl, so that we can
see which VM type we're using (HV or PR). To enable this, add the
KVM_CHECK_EXTENSION ioctl to our vm ioctl portfolio.
Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 0418b746cb68..51776cac6a9b 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
| @@ -759,6 +759,7 @@ struct kvm_ppc_smmu_info { | |||
| 759 | #define KVM_CAP_ARM_PSCI_0_2 102 | 759 | #define KVM_CAP_ARM_PSCI_0_2 102 |
| 760 | #define KVM_CAP_PPC_FIXUP_HCALL 103 | 760 | #define KVM_CAP_PPC_FIXUP_HCALL 103 |
| 761 | #define KVM_CAP_PPC_ENABLE_HCALL 104 | 761 | #define KVM_CAP_PPC_ENABLE_HCALL 104 |
| 762 | #define KVM_CAP_CHECK_EXTENSION_VM 105 | ||
| 762 | 763 | ||
| 763 | #ifdef KVM_CAP_IRQ_ROUTING | 764 | #ifdef KVM_CAP_IRQ_ROUTING |
| 764 | 765 | ||
