Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197661
b: refs/heads/master
c: 160d2f6
h: refs/heads/master
i:
  197659: 31b6012
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed May 17, 2010
1 parent b61150a commit 54d3656
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5c0d0920a270b9f2aa20c1cecb162703da32e766
refs/heads/master: 160d2f6c0c90713aa3bb93dd344fe0d527342e26
2 changes: 2 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -2836,11 +2836,13 @@ long kvm_arch_vm_ioctl(struct file *filp,
r = -EFAULT;
if (copy_from_user(&irq_event, argp, sizeof irq_event))
goto out;
r = -ENXIO;
if (irqchip_in_kernel(kvm)) {
__s32 status;
status = kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID,
irq_event.irq, irq_event.level);
if (ioctl == KVM_IRQ_LINE_STATUS) {
r = -EFAULT;
irq_event.status = status;
if (copy_to_user(argp, &irq_event,
sizeof irq_event))
Expand Down

0 comments on commit 54d3656

Please sign in to comment.