KVM: fix missing check for memslot flags
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Tue, 21 Aug 2012 02:58:13 +0000 (10:58 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 22 Aug 2012 12:08:50 +0000 (15:08 +0300)
commita50d64d6590f470b712758598a077ef4fd0fc40a
tree4e673d5f51e95e00c218abec66f8cccb9fa8664b
parent8e3d9d061b5d132217629e7b5635ff0c02488e65
KVM: fix missing check for memslot flags

Check flags when memslot is registered from userspace as Avi's suggestion

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/kvm_main.c