From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
kvm@vger.kernel.org, Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: linux 3.13 guest crash with -cpu host
Date: Mon, 3 Feb 2014 16:42:47 +0200 [thread overview]
Message-ID: <20140203144247.GA24528@redhat.com> (raw)
In-Reply-To: <52EFA2A5.7000203@redhat.com>
On Mon, Feb 03, 2014 at 03:07:33PM +0100, Paolo Bonzini wrote:
> Il 03/02/2014 15:06, Michael S. Tsirkin ha scritto:
> >>Linux seems to be trying to read IA32_PERF_CAPABILITIES without checking the
> >>PDCM flag (CPUID[1].ECX[15]).
> >>
> >>I can't see why this wasn't crashing before, though. That code seems to be old.
> >>
> >> * v2 and above have a perf capabilities MSR
> >> */
> >> if (version > 1) {
> >> u64 capabilities;
> >>
> >> rdmsrl(MSR_IA32_PERF_CAPABILITIES, capabilities);
> >> x86_pmu.intel_cap.capabilities = capabilities;
> >> }
> >>
> >>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 ..
>
> Because KVM doesn't implement the MSR, but your baremetal likely does.
>
> Paolo
Yep. I get 31c3 on bare-metal.
So I suppose the claim is actually true, and ideally kvm should
emulate this instead of crashing guest.
--
MST
next prev parent reply other threads:[~2014-02-03 14:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-02 20:59 linux 3.13 guest crash with -cpu host Michael S. Tsirkin
2014-02-03 12:58 ` Eduardo Habkost
2014-02-03 13:29 ` Peter Zijlstra
2014-02-03 14:06 ` Michael S. Tsirkin
2014-02-03 14:07 ` Paolo Bonzini
2014-02-03 14:42 ` Michael S. Tsirkin [this message]
2014-02-03 14:12 ` Peter Zijlstra
2014-02-03 14:19 ` Paolo Bonzini
2014-02-03 14:26 ` Peter Zijlstra
2014-02-03 14:28 ` Peter Zijlstra
2014-02-03 15:01 ` Paolo Bonzini
2014-02-03 14:45 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140203144247.GA24528@redhat.com \
--to=mst@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=ehabkost@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox