]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: x86: fix the error of ioctl KVM_IRQ_LINE if no irq chip
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 12 Mar 2010 02:09:45 +0000 (10:09 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:31 +0000 (12:15 +0300)
commit160d2f6c0c90713aa3bb93dd344fe0d527342e26
tree284248727d161df1e3e95875fb9aca44aeaa7ca2
parent5c0d0920a270b9f2aa20c1cecb162703da32e766
KVM: x86: fix the error of ioctl KVM_IRQ_LINE if no irq chip

If no irq chip in kernel, ioctl KVM_IRQ_LINE will return -EFAULT.
But I see in other place such as KVM_[GET|SET]IRQCHIP, -ENXIO is
return. So this patch used -ENXIO instead of -EFAULT.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c