Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54071
b: refs/heads/master
c: 07c45a3
h: refs/heads/master
i:
  54069: 5802c0a
  54067: 41921ab
  54063: 93880d5
v: v3
  • Loading branch information
Avi Kivity committed May 3, 2007
1 parent 39dc687 commit c6f6091
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1961d276c877b99f5f16aaf36377c75e0e191c3a
refs/heads/master: 07c45a366d89f8eaec5d9890e810171b408f9a52
8 changes: 7 additions & 1 deletion trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,7 @@ static long kvm_dev_ioctl(struct file *filp,
unsigned int ioctl, unsigned long arg)
{
void __user *argp = (void __user *)arg;
int r = -EINVAL;
long r = -EINVAL;

switch (ioctl) {
case KVM_GET_API_VERSION:
Expand Down Expand Up @@ -2478,6 +2478,12 @@ static long kvm_dev_ioctl(struct file *filp,
*/
r = 0;
break;
case KVM_GET_VCPU_MMAP_SIZE:
r = -EINVAL;
if (arg)
goto out;
r = PAGE_SIZE;
break;
default:
;
}
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ struct kvm_signal_mask {
* return is 1 (yes) or 0 (no, sorry).
*/
#define KVM_CHECK_EXTENSION _IO(KVMIO, 0x03)
/*
* Get size for mmap(vcpu_fd)
*/
#define KVM_GET_VCPU_MMAP_SIZE _IO(KVMIO, 0x04) /* in bytes */

/*
* ioctls for VM fds
Expand Down

0 comments on commit c6f6091

Please sign in to comment.