KVM: VMX: drop rdtscp_enabled check in prepare_vmcs02()
SECONDARY_EXEC_RDTSCP set for L2 guest comes from vmcs12 Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
8b3e34e46a
commit
e2821620c0
+1
-2
@@ -9327,8 +9327,7 @@ static void prepare_vmcs02(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
|
|||||||
|
|
||||||
if (cpu_has_secondary_exec_ctrls()) {
|
if (cpu_has_secondary_exec_ctrls()) {
|
||||||
exec_control = vmx_secondary_exec_control(vmx);
|
exec_control = vmx_secondary_exec_control(vmx);
|
||||||
if (!vmx->rdtscp_enabled)
|
|
||||||
exec_control &= ~SECONDARY_EXEC_RDTSCP;
|
|
||||||
/* Take the following fields only from vmcs12 */
|
/* Take the following fields only from vmcs12 */
|
||||||
exec_control &= ~(SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
|
exec_control &= ~(SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES |
|
||||||
SECONDARY_EXEC_RDTSCP |
|
SECONDARY_EXEC_RDTSCP |
|
||||||
|
|||||||
Reference in New Issue
Block a user