aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-08-24 14:54:57 -0400
committerAvi Kivity <avi@redhat.com>2012-09-06 09:37:25 -0400
commit2df72e9bc4c505d8357012f2924589f3d16f9d44 (patch)
treeb5b0e8d63005300dd06fd779658639645d55a67b /include/linux/kvm_host.h
parent09941fbb712655cde9b350852be7a99a6f61a03f (diff)
KVM: split kvm_arch_flush_shadow
Introducing kvm_arch_flush_shadow_memslot, to invalidate the translations of a single memory slot. Signed-off-by: Marcelo Tosatti <mtosatti@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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 9c0b3c3ae0a5..40791930bc15 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -458,7 +458,11 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
458 int user_alloc); 458 int user_alloc);
459bool kvm_largepages_enabled(void); 459bool kvm_largepages_enabled(void);
460void kvm_disable_largepages(void); 460void kvm_disable_largepages(void);
461void kvm_arch_flush_shadow(struct kvm *kvm); 461/* flush all memory translations */
462void kvm_arch_flush_shadow_all(struct kvm *kvm);
463/* flush memory translations pointing to 'slot' */
464void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
465 struct kvm_memory_slot *slot);
462 466
463int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages, 467int gfn_to_page_many_atomic(struct kvm *kvm, gfn_t gfn, struct page **pages,
464 int nr_pages); 468 int nr_pages);