]> git.karo-electronics.de Git - karo-tx-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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Oct 2009 19:40:17 +0000 (12:40 -0700)
commitca9405b882ae10710c158d989f0c740242af2e28
treeb196d22eb1941648f1f413b3e827526a9293249e
parent779632b438a79ab1ed1f0da390712b12db3b2a58
KVM: VMX: flush TLB with INVEPT on cpu migration

commit eb5109e311b5152c0614a28d7d615d087f268f19 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/vmx.c