]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: VMX: flush TLB with INVEPT on cpu migration
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 1 Oct 2009 22:16:58 +0000 (19:16 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 1 Oct 2009 23:47:11 +0000 (20:47 -0300)
commit083e9e10dd99629b52e2cfad7eeb4fb6d7511d15
treeed5f82ebc40c1c61796550858b610817af18e3fc
parent03c7e94f47cab5679125050cebf2663477b5670c
KVM: VMX: flush TLB with INVEPT on cpu migration

It is possible that stale EPTP-tagged mappings are used, if a
vcpu migrates to a different pcpu.

Set KVM_REQ_TLB_FLUSH in vmx_vcpu_load, when switching pcpus, which
will invalidate both VPID and EPT mappings on the next vm-entry.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c