]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Avoid issuing wbinvd twice
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 1 Nov 2010 13:01:29 +0000 (14:01 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:28:52 +0000 (11:28 +0200)
commita7c1eae1536d788d31f9d0ef98de3bf22f8abb0b
tree07dc35deb31d99607eac676e38215abe3996ce65
parentb3fdae1ae775cb20e05464a4e3a393ba0e099353
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