Re: [PATCH] perf/x86/intel/pt: Don't die on VMXON

From: Alexander Shishkin
Date: Wed Apr 06 2016 - 08:09:44 EST


Borislav Petkov <bp@xxxxxxxxx> writes:

> On Wed, Apr 06, 2016 at 01:52:15PM +0200, Peter Zijlstra wrote:
>> Borislav tells me this ought to be boot_cpu_has(X86_FEATURE_VMX)
>>
>> > + /* Intel SDM, 36.5 "Tracing post-VMXON" */
>> > + rdmsrl(MSR_IA32_VMX_MISC, reg);
>> > + if (reg & BIT(14))
>
> Also, I needz to consult my crystal ball about what bit 14 is...
>
> :-)

I know. It's right there in SDM chapter 36.5, referred to as "bit 14"
and it's not mentioned anywhere else that I could find, so I just left a
comment there.

Regards,
--
Alex