Re: linux 3.13 guest crash with -cpu host

Peter Zijlstra
2014-02-03T14:12:39Z

On Mon, Feb 03, 2014 at 04:06:01PM +0200, Michael S. Tsirkin wrote:
> On Mon, Feb 03, 2014 at 10:58:28AM -0200, Eduardo Habkost wrote:

> > Where does the "v2 and above have a perf capabilities MSR" claim in the code
> > come from?
>
>
> 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.