]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: prevent MWAIT in guest with buggy MONITOR
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 29 Nov 2017 21:23:41 +0000 (22:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Dec 2017 08:26:42 +0000 (09:26 +0100)
commit81c76aae0347afa638cac3b674589981e32acd08
tree43238968c23a24ead1f0c0ff568f5e7d978c7511
parent19aa56a944129c68b24135bb9ff7d32beda7ed97
KVM: x86: prevent MWAIT in guest with buggy MONITOR

The bug prevents MWAIT from waking up after a write to the monitored
cache line.
KVM might emulate a CPU model that shouldn't have the bug, so the guest
would not employ a workaround and possibly miss wakeups.
Better to avoid the situation.

Reviewed-by: Alexander Graf <agraf@suse.de>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.h