diff --git a/hypervisor/arch/x86/guest/vmcs.c b/hypervisor/arch/x86/guest/vmcs.c index e029b8b8a..09de997d7 100644 --- a/hypervisor/arch/x86/guest/vmcs.c +++ b/hypervisor/arch/x86/guest/vmcs.c @@ -283,6 +283,11 @@ static void init_exec_ctrl(struct acrn_vcpu *vcpu) */ value32 &= ~VMX_PROCBASED_CTLS_INVLPG; + /* + * Enable VM_EXIT for rdpmc execution. + */ + value32 |= VMX_PROCBASED_CTLS_RDPMC; + exec_vmwrite32(VMX_PROC_VM_EXEC_CONTROLS, value32); pr_dbg("VMX_PROC_VM_EXEC_CONTROLS: 0x%x ", value32);