diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-07-07 13:16:45 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 23:40:33 -0400 |
commit | edba23e51578f7cb6781461568489fc1825db4ac (patch) | |
tree | 54ce6b22998c1bf7c40cfa43e3ebd8b9df271dcb /include/linux/kvm_host.h | |
parent | fa7bff8f8a7d3de61c0473d0b6dc5a0f4fdc6ac9 (diff) |
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; | |||
269 | int is_error_page(struct page *page); | 269 | int is_error_page(struct page *page); |
270 | int is_error_pfn(pfn_t pfn); | 270 | int is_error_pfn(pfn_t pfn); |
271 | int is_hwpoison_pfn(pfn_t pfn); | 271 | int is_hwpoison_pfn(pfn_t pfn); |
272 | int is_fault_pfn(pfn_t pfn); | ||
272 | int kvm_is_error_hva(unsigned long addr); | 273 | int kvm_is_error_hva(unsigned long addr); |
273 | int kvm_set_memory_region(struct kvm *kvm, | 274 | int kvm_set_memory_region(struct kvm *kvm, |
274 | struct kvm_userspace_memory_region *mem, | 275 | struct kvm_userspace_memory_region *mem, |