Re: [PATCH] SVM: forbid guest to execute monitor/mwait

Joerg Roedel
2007-03-22T12:46:45Z

On Thu, Mar 22, 2007 at 02:33:50PM +0200, Avi Kivity wrote:
> Joerg Roedel wrote:
> >We agree that we should hide the monitor cpuid bit to the guest from the
> >kernel level. Allowing the guest to use mwait if its available on the
> >processor without proper virtualization would cause the processor to
> >idle in the guest mode.
> >
>
> I think it can be safely done from userspace, as long as host integrity is not compromised.

Ok. This way is also most efficient because it does not require any
further patching :) QEmu currently does not set this bit.