KVM: Return EFAULT from kvm ioctl when guest accesses bad area
authorGleb Natapov <gleb@redhat.com>
Wed, 7 Jul 2010 17:16:45 +0000 (20:16 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:33 +0000 (06:40 +0300)
commitedba23e51578f7cb6781461568489fc1825db4ac
tree54ce6b22998c1bf7c40cfa43e3ebd8b9df271dcb
parentfa7bff8f8a7d3de61c0473d0b6dc5a0f4fdc6ac9
KVM: Return EFAULT from kvm ioctl when guest accesses bad area

Currently if guest access address that belongs to memory slot but is not
backed up by page or page is read only KVM treats it like MMIO access.
Remove that capability. It was never part of the interface and should
not be relied upon.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c