KVM: fix the errno of ioctl KVM_[UN]REGISTER_COALESCED_MMIO failure
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 12 Mar 2010 04:59:06 +0000 (12:59 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:34 +0000 (12:15 +0300)
commita87fa35514bcf17aeca97245574e3f735cec9074
tree484645e461ed2b75cb3b08092723883d60b14d23
parent600f1ec3761671307935a583c46f17fff0fa9b72
KVM: fix the errno of ioctl KVM_[UN]REGISTER_COALESCED_MMIO failure

This patch change the errno of ioctl KVM_[UN]REGISTER_COALESCED_MMIO
from -EINVAL to -ENXIO if no coalesced mmio dev exists.

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