[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>
This commit is contained in:
committed by
Linus Torvalds
parent
0f8e3d365a
commit
0b76e20b27
@@ -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)
|
||||
|
Reference in New Issue
Block a user