diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-07-07 20:16:45 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:40:33 +0300 |
commit | edba23e51578f7cb6781461568489fc1825db4ac (patch) | |
tree | 54ce6b22998c1bf7c40cfa43e3ebd8b9df271dcb /include/linux/kvm_host.h | |
parent | fa7bff8f8a7d3de61c0473d0b6dc5a0f4fdc6ac9 (diff) | |
download | lwn-edba23e51578f7cb6781461568489fc1825db4ac.tar.gz lwn-edba23e51578f7cb6781461568489fc1825db4ac.zip |
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>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index e796326f3646..8055067b6bec 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -269,6 +269,7 @@ extern pfn_t bad_pfn; int is_error_page(struct page *page); int is_error_pfn(pfn_t pfn); int is_hwpoison_pfn(pfn_t pfn); +int is_fault_pfn(pfn_t pfn); int kvm_is_error_hva(unsigned long addr); int kvm_set_memory_region(struct kvm *kvm, struct kvm_userspace_memory_region *mem, |