Re: GPF in intel_pmu_lbr_reset() with qemu -cpu host

From: H. Peter Anvin
Date: Fri Mar 21 2014 - 16:47:45 EST


Not really. That is equally braindamaged. The problem is that KVM is telling the host that our is something it simply cannot be.

On March 21, 2014 12:29:38 PM PDT, Andi Kleen <ak@xxxxxxxxxxxxxxx> wrote:
>On Fri, Mar 21, 2014 at 06:42:40PM +0100, Peter Wu wrote:
>> Hi,
>>
>> While trying to run QEMU with `-enable-kvm -host cpu`, I get a GPF in
>> intel_pmu_lbr_reset():
>
>Same problem as the RAPL problem earlier. KVM is lying to the guest
>that it is a host CPU, but not implementing all MSRs the host
>CPU supports.
>
>KVM should really return 0 on unknown MSRs not #GP
>
>-Andi

--
Sent from my mobile phone. Please pardon brevity and lack of formatting.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/