|
@@ -2436,7 +2436,7 @@ static long kvm_dev_ioctl(struct file *filp,
|
|
unsigned int ioctl, unsigned long arg)
|
|
unsigned int ioctl, unsigned long arg)
|
|
{
|
|
{
|
|
void __user *argp = (void __user *)arg;
|
|
void __user *argp = (void __user *)arg;
|
|
- int r = -EINVAL;
|
|
|
|
|
|
+ long r = -EINVAL;
|
|
|
|
|
|
switch (ioctl) {
|
|
switch (ioctl) {
|
|
case KVM_GET_API_VERSION:
|
|
case KVM_GET_API_VERSION:
|
|
@@ -2478,6 +2478,12 @@ static long kvm_dev_ioctl(struct file *filp,
|
|
*/
|
|
*/
|
|
r = 0;
|
|
r = 0;
|
|
break;
|
|
break;
|
|
|
|
+ case KVM_GET_VCPU_MMAP_SIZE:
|
|
|
|
+ r = -EINVAL;
|
|
|
|
+ if (arg)
|
|
|
|
+ goto out;
|
|
|
|
+ r = PAGE_SIZE;
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
;
|
|
;
|
|
}
|
|
}
|