|
| From: | Paolo Bonzini |
| Subject: | Re: [PATCH v5 1/2] x86/cpu: Add support for UMONITOR/UMWAIT/TPAUSE |
| Date: | Wed, 9 Oct 2019 10:06:14 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 29/09/19 03:57, Tao Xu wrote:
> + } else if (function == 7 && index == 0 && reg == R_ECX) {
> + if (enable_cpu_pm) {
> + ret |= CPUID_7_0_ECX_WAITPKG;
This is incorrect. You should disable WAITPKG if !enable_cpu_pm, but
you should not enable it forcefully if enable_cpu_pm is true.
Paolo
> + } else {
> + ret &= ~CPUID_7_0_ECX_WAITPKG;
> + }
| [Prev in Thread] | Current Thread | [Next in Thread] |