Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197663
b: refs/heads/master
c: a87fa35
h: refs/heads/master
i:
  197661: 54d3656
  197659: 31b6012
  197655: 2ffeb68
  197647: a1079cd
  197631: 25ce0b3
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed May 17, 2010
1 parent 2e950bd commit 43bb52c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 600f1ec3761671307935a583c46f17fff0fa9b72
refs/heads/master: a87fa35514bcf17aeca97245574e3f735cec9074
4 changes: 2 additions & 2 deletions trunk/virt/kvm/coalesced_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
struct kvm_coalesced_mmio_dev *dev = kvm->coalesced_mmio_dev;

if (dev == NULL)
return -EINVAL;
return -ENXIO;

mutex_lock(&kvm->slots_lock);
if (dev->nb_zones >= KVM_COALESCED_MMIO_ZONE_MAX) {
Expand All @@ -162,7 +162,7 @@ int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
struct kvm_coalesced_mmio_zone *z;

if (dev == NULL)
return -EINVAL;
return -ENXIO;

mutex_lock(&kvm->slots_lock);

Expand Down
2 changes: 0 additions & 2 deletions trunk/virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,6 @@ static long kvm_vm_ioctl(struct file *filp,
r = -EFAULT;
if (copy_from_user(&zone, argp, sizeof zone))
goto out;
r = -ENXIO;
r = kvm_vm_ioctl_register_coalesced_mmio(kvm, &zone);
if (r)
goto out;
Expand All @@ -1621,7 +1620,6 @@ static long kvm_vm_ioctl(struct file *filp,
r = -EFAULT;
if (copy_from_user(&zone, argp, sizeof zone))
goto out;
r = -ENXIO;
r = kvm_vm_ioctl_unregister_coalesced_mmio(kvm, &zone);
if (r)
goto out;
Expand Down

0 comments on commit 43bb52c

Please sign in to comment.