From: Marcelo Tosatti Date: Wed, 15 Oct 2008 09:45:08 +0000 (-0200) Subject: KVM: MMU: sync root on paravirt TLB flush X-Git-Tag: v2.6.28-rc3~87^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6ad9f15c94822c3f067a7d443f3b414e08b34460;p=linux-2.6-omap-h63xx.git KVM: MMU: sync root on paravirt TLB flush The pvmmu TLB flush handler should request a root sync, similarly to a native read-write CR3. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 99c239c5c0a..2a5e64881d9 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2634,6 +2634,7 @@ static int kvm_pv_mmu_write(struct kvm_vcpu *vcpu, static int kvm_pv_mmu_flush_tlb(struct kvm_vcpu *vcpu) { kvm_x86_ops->tlb_flush(vcpu); + set_bit(KVM_REQ_MMU_SYNC, &vcpu->requests); return 1; }