summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-01 16:56:20 +0100
committerAvi Kivity <avi@qumranet.com>2007-05-03 09:52:24 +0200
commit5d308f4550d9dc4c236e08b0377b610b9578577b (patch)
treec19005059de37403db7962bcfa7bac657331b052 /include
parentKVM: Renumber ioctls (diff)
downloadlinux-5d308f4550d9dc4c236e08b0377b610b9578577b.tar.xz
linux-5d308f4550d9dc4c236e08b0377b610b9578577b.zip
KVM: Add method to check for backwards-compatible API extensions
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 93472daec120..c93cf53953af 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -232,6 +232,11 @@ struct kvm_cpuid {
#define KVM_GET_API_VERSION _IO(KVMIO, 0x00)
#define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */
#define KVM_GET_MSR_INDEX_LIST _IOWR(KVMIO, 0x02, struct kvm_msr_list)
+/*
+ * Check if a kvm extension is available. Argument is extension number,
+ * return is 1 (yes) or 0 (no, sorry).
+ */
+#define KVM_CHECK_EXTENSION _IO(KVMIO, 0x03)
/*
* ioctls for VM fds