Re: [PATCH] KVM: X86: Enable IA32_MSIC_ENABLE MONITOR bit when exposing mwait/monitor

2019-05-14 Thread Wanpeng Li
On Mon, 13 May 2019 at 21:35, Radim Krčmář wrote: > > 2019-05-13 17:46+0800, Wanpeng Li: > > From: Wanpeng Li > > > > MSR IA32_MSIC_ENABLE bit 18, according to SDM: > > > > | When this bit is set to 0, the MONITOR feature flag is not set > > (CPUID.01H:ECX[bit 3] = 0). > > | This indicates

Re: [PATCH] KVM: X86: Enable IA32_MSIC_ENABLE MONITOR bit when exposing mwait/monitor

2019-05-13 Thread Radim Krčmář
2019-05-13 17:46+0800, Wanpeng Li: > From: Wanpeng Li > > MSR IA32_MSIC_ENABLE bit 18, according to SDM: > > | When this bit is set to 0, the MONITOR feature flag is not set > (CPUID.01H:ECX[bit 3] = 0). > | This indicates that MONITOR/MWAIT are not supported. > | > | Software attempts

Re: [PATCH] KVM: X86: Enable IA32_MSIC_ENABLE MONITOR bit when exposing mwait/monitor

2019-05-13 Thread Konrad Rzeszutek Wilk
On May 13, 2019 5:46:39 AM EDT, Wanpeng Li wrote: >From: Wanpeng Li > >MSR IA32_MSIC_ENABLE bit 18, according to SDM: > MSIC? (Also the $subject) >| When this bit is set to 0, the MONITOR feature flag is not set >(CPUID.01H:ECX[bit 3] = 0). > | This indicates that MONITOR/MWAIT are not

[PATCH] KVM: X86: Enable IA32_MSIC_ENABLE MONITOR bit when exposing mwait/monitor

2019-05-13 Thread Wanpeng Li
From: Wanpeng Li MSR IA32_MSIC_ENABLE bit 18, according to SDM: | When this bit is set to 0, the MONITOR feature flag is not set (CPUID.01H:ECX[bit 3] = 0). | This indicates that MONITOR/MWAIT are not supported. | | Software attempts to execute MONITOR/MWAIT will cause #UD when this bit