Commit 5d308f45 authored by Avi Kivity's avatar Avi Kivity

KVM: Add method to check for backwards-compatible API extensions

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 739872c5
...@@ -2416,6 +2416,12 @@ static long kvm_dev_ioctl(struct file *filp, ...@@ -2416,6 +2416,12 @@ static long kvm_dev_ioctl(struct file *filp,
r = 0; r = 0;
break; break;
} }
case KVM_CHECK_EXTENSION:
/*
* No extensions defined at present.
*/
r = 0;
break;
default: default:
; ;
} }
......
...@@ -232,6 +232,11 @@ struct kvm_cpuid { ...@@ -232,6 +232,11 @@ struct kvm_cpuid {
#define KVM_GET_API_VERSION _IO(KVMIO, 0x00) #define KVM_GET_API_VERSION _IO(KVMIO, 0x00)
#define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */ #define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */
#define KVM_GET_MSR_INDEX_LIST _IOWR(KVMIO, 0x02, struct kvm_msr_list) #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 * ioctls for VM fds
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment