summaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2014-09-24 15:57:57 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-24 14:07:59 +0200
commitfe71557afbec641fee73711e40602bed37f6f33b (patch)
tree208a7e97f956a18a1126b47aab6ba050f6b3da28 /virt/kvm/kvm_main.c
parent445b8236959bfe624a5aa9bce89f44a3bec9b2b1 (diff)
downloadop-kernel-dev-fe71557afbec641fee73711e40602bed37f6f33b.zip
op-kernel-dev-fe71557afbec641fee73711e40602bed37f6f33b.tar.gz
kvm: Add arch specific mmu notifier for page invalidation
This will be used to let the guest run while the APIC access page is not pinned. Because subsequent patches will fill in the function for x86, place the (still empty) x86 implementation in the x86.c file instead of adding an inline function in kvm_host.h. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 5b8ca36..3f16f56 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -296,6 +296,9 @@ static void kvm_mmu_notifier_invalidate_page(struct mmu_notifier *mn,
kvm_flush_remote_tlbs(kvm);
spin_unlock(&kvm->mmu_lock);
+
+ kvm_arch_mmu_notifier_invalidate_page(kvm, address);
+
srcu_read_unlock(&kvm->srcu, idx);
}
OpenPOWER on IntegriCloud