Il 03/02/2014 15:12, Peter Zijlstra ha scritto:
> But why doesn't it crash on baremetal?
> Probably baremetal simply returns 0 or something.
> Let me try ..
The claim "v2 and above have FEATURE_PDCM" is in fact true for real
hardware.
If it didn't the rdmsr() would have generated an exception and we'd have
crashed just like your virtual thingy did.
Right, and the virt thingy has no PEBS, so there is no correct value
that we could return from the MSR. That's why the CPUID bit is zero.
A strange game. The only winning move is not to play. How about a nice
game of chess?
Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html