diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-07-23 11:43:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-01 12:43:00 -0700 |
commit | c857ebba6025350232c87d89e459338f139a50ab (patch) | |
tree | 70e9ccc8cbf670f51a4f740e5ac912c290d52cb8 /include | |
parent | 205cb93409b6c0d6e66cce8fdf5eef8744d687eb (diff) |
KVM: MMU: nuke shadowed pgtable pages and ptes on memslot destruction
Original-Commit-Hash: 3cc312f03e06a8fa39ecb4cc0189efc2bd888899
Flush the shadow mmu before removing regions to avoid stale entries.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-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 de9d1df4bba..d413e893977 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -166,6 +166,7 @@ int kvm_arch_set_memory_region(struct kvm *kvm, struct kvm_userspace_memory_region *mem, struct kvm_memory_slot old, int user_alloc); +void kvm_arch_flush_shadow(struct kvm *kvm); gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); unsigned long gfn_to_hva(struct kvm *kvm, gfn_t gfn); |