diff options
author | Gabriel L. Somlo <[email protected]> | 2014-05-07 16:52:13 -0400 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2014-05-08 15:40:49 +0200 |
commit | 87c00572ba05aa8c9db118da75c608f47eb10b9e (patch) | |
tree | 484e8cc1da97c7302c739364ee0af9bd68cebb0e /tools/perf/scripts | |
parent | b63cf42fd1d8c18fab71222321aaf356f63089c9 (diff) |
kvm: x86: emulate monitor and mwait instructions as nop
Treat monitor and mwait instructions as nop, which is architecturally
correct (but inefficient) behavior. We do this to prevent misbehaving
guests (e.g. OS X <= 10.7) from crashing after they fail to check for
monitor/mwait availability via cpuid.
Since mwait-based idle loops relying on these nop-emulated instructions
would keep the host CPU pegged at 100%, do NOT advertise their presence
via cpuid, to prevent compliant guests from using them inadvertently.
Signed-off-by: Gabriel L. Somlo <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions