History

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.

Alexander Graf committed 12 years ago

Commit 92b591a1 parent 784aa3d3 files · +37 −29Browse files

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

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -759,6 +759,7 @@ struct kvm_ppc_smmu_info { · 758 unmodified lines
759759 #define KVM_CAP_ARM_PSCI_0_2 102
760760 #define KVM_CAP_PPC_FIXUP_HCALL 103
761761 #define KVM_CAP_PPC_ENABLE_HCALL 104
762+#define KVM_CAP_CHECK_EXTENSION_VM 105
762763
763764 #ifdef KVM_CAP_IRQ_ROUTING
764765