Re: [PATCH v3] kvm: better MWAIT emulation for guests

2017-03-14 Thread Michael S. Tsirkin
On Tue, Mar 14, 2017 at 02:58:24PM +0100, Radim Krčmář wrote: > 2017-03-14 01:44+0200, Michael S. Tsirkin: > > Guests running Mac OS 5, 6, and 7 (Leopard through Lion) have a problem: > > unless explicitly provided with kernel command line argument > > "idlehalt=0" they'd implicitly assume MONITOR

Re: [PATCH v3] kvm: better MWAIT emulation for guests

2017-03-14 Thread Radim Krčmář
2017-03-14 01:44+0200, Michael S. Tsirkin: > Guests running Mac OS 5, 6, and 7 (Leopard through Lion) have a problem: > unless explicitly provided with kernel command line argument > "idlehalt=0" they'd implicitly assume MONITOR and MWAIT availability, > without checking CPUID. > > We currently em

[PATCH v3] kvm: better MWAIT emulation for guests

2017-03-13 Thread Michael S. Tsirkin
Guests running Mac OS 5, 6, and 7 (Leopard through Lion) have a problem: unless explicitly provided with kernel command line argument "idlehalt=0" they'd implicitly assume MONITOR and MWAIT availability, without checking CPUID. We currently emulate that as a NOP but on VMX we can do better: let gu