From: Gabriel L. Somlo Date: Wed, 7 May 2014 20:52:13 +0000 (-0400) Subject: kvm: x86: emulate monitor and mwait instructions as nop X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~8^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c00572ba05aa8c9db118da75c608f47eb10b9e;p=pandora-kernel.git 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 Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed