Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54072
b: refs/heads/master
c: f0fe510
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity committed May 3, 2007
1 parent c6f6091 commit 5e1f113
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 07c45a366d89f8eaec5d9890e810171b408f9a52
refs/heads/master: f0fe510864a4520a85dfa35ae14f5f376c56efc7
9 changes: 9 additions & 0 deletions trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2169,6 +2169,9 @@ static long kvm_vcpu_ioctl(struct file *filp,

switch (ioctl) {
case KVM_RUN:
r = -EINVAL;
if (arg)
goto out;
r = kvm_vcpu_ioctl_run(vcpu, vcpu->run);
break;
case KVM_GET_REGS: {
Expand Down Expand Up @@ -2440,9 +2443,15 @@ static long kvm_dev_ioctl(struct file *filp,

switch (ioctl) {
case KVM_GET_API_VERSION:
r = -EINVAL;
if (arg)
goto out;
r = KVM_API_VERSION;
break;
case KVM_CREATE_VM:
r = -EINVAL;
if (arg)
goto out;
r = kvm_dev_ioctl_create_vm();
break;
case KVM_GET_MSR_INDEX_LIST: {
Expand Down

0 comments on commit 5e1f113

Please sign in to comment.