KVM: x86: Avoid issuing wbinvd twice
commit297aa26849436ef07ada4830800f67a4511fb6f7
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 1 Nov 2010 13:01:29 +0000 (1 14:01 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Nov 2010 17:57:05 +0000 (1 15:57 -0200)
tree8da1e15b526891ce66369c94b12e87d05aa64129
parent042d60f3e9e2af5b0819fbe3d237f75cf63e4e42
KVM: x86: Avoid issuing wbinvd twice

Micro optimization to avoid calling wbinvd twice on the CPU that has to
emulate it. As we might be preempted between smp_call_function_many and
the local wbinvd, the cache might be filled again so that real work
could be done uselessly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c