summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2006-12-22 10:06:02 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-22 17:55:46 +0100
commit0b76e20b27d20f7cb240e6b1b2dbebaa1b7f9b60 (patch)
tree409d8ca0f46500b5998aca9400c3419f9ebb789f /drivers/kvm/kvm_main.c
parent[PATCH] KVM: Handle p5 mce msrs (diff)
downloadlinux-0b76e20b27d20f7cb240e6b1b2dbebaa1b7f9b60.tar.xz
linux-0b76e20b27d20f7cb240e6b1b2dbebaa1b7f9b60.zip
[PATCH] KVM: API versioning
Add compile-time and run-time API versioning. Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index bc2e6c19f855..9f24f22e4cb2 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -1603,6 +1603,9 @@ static long kvm_dev_ioctl(struct file *filp,
int r = -EINVAL;
switch (ioctl) {
+ case KVM_GET_API_VERSION:
+ r = KVM_API_VERSION;
+ break;
case KVM_CREATE_VCPU: {
r = kvm_dev_ioctl_create_vcpu(kvm, arg);
if (r)