OSDN Git Service

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)
commit2a140f3b6e23a309453b6f68709a50ece543f0f4
tree43238968c23a24ead1f0c0ff568f5e7d978c7511
parent0d37d26f11bc1c0085d0c89ba603e3bb2c7f7076
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