aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>2013-07-04 00:40:29 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-18 06:29:25 -0400
commite59dbe09f8e6fb8f6ee19dc79d1a2f14299e4cd2 (patch)
tree0de53b1ec2901fd34fdaca56770f0757d9e660e1 /include
parent85dfe87e24326c472454cc92313ba8c3b4efe53b (diff)
KVM: Introduce kvm_arch_memslots_updated()
This is called right after the memslots is updated, i.e. when the result of update_memslots() gets installed in install_new_memslots(). Since the memslots needs to be updated twice when we delete or move a memslot, kvm_arch_commit_memory_region() does not correspond to this exactly. In the following patch, x86 will use this new API to check if the mmio generation has reached its maximum value, in which case mmio sptes need to be flushed out. Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> Acked-by: Alexander Graf <agraf@suse.de> Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index ec590aece366..c11c7686ae5f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -503,6 +503,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
503void kvm_arch_free_memslot(struct kvm_memory_slot *free, 503void kvm_arch_free_memslot(struct kvm_memory_slot *free,
504 struct kvm_memory_slot *dont); 504 struct kvm_memory_slot *dont);
505int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages); 505int kvm_arch_create_memslot(struct kvm_memory_slot *slot, unsigned long npages);
506void kvm_arch_memslots_updated(struct kvm *kvm);
506int kvm_arch_prepare_memory_region(struct kvm *kvm, 507int kvm_arch_prepare_memory_region(struct kvm *kvm,
507 struct kvm_memory_slot *memslot, 508 struct kvm_memory_slot *memslot,
508 struct kvm_userspace_memory_region *mem, 509 struct kvm_userspace_memory_region *mem,