lkml.org 
[lkml]   [2019]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v6 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL
From
Date
On 7/11/2019 9:25 PM, Paolo Bonzini wrote:
> On 21/06/19 07:57, Tao Xu wrote:
>> + if (guest_cpuid_has(vcpu, X86_FEATURE_WAITPKG))
>> + atomic_switch_umwait_control_msr(vmx);
>> +
>
> guest_cpuid_has is slow. Please replace it with a test on
> secondary_exec_controls_get(vmx).

Thank you paolo, I will improve it.

>
> Are you going to look into nested virtualization support? This should
> include only 1) allowing setting the enable bit in secondary execution
> controls, and passing it through in prepare_vmcs02_early; 2) reflecting
> the vmexit in nested_vmx_exit_reflected.
>

I will add nested support in next version.

> Thanks,
>
> Paolo
>

\
 
 \ /
  Last update: 2019-07-12 02:43    [W:0.042 / U:57.592 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site