From: Paolo Bonzini <pbonzini@redhat.com>
To: Borislav Petkov <bp@alien8.de>,
kernel test robot <fengguang.wu@intel.com>,
Andy Lutomirski <luto@amacapital.net>,
Eduardo Habkost <ehabkost@redhat.com>
Cc: LKP <lkp@01.org>,
wfg@linux.intel.com, lkml <linux-kernel@vger.kernel.org>
Subject: Re: [x86] 5ac0c41bf3: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe
Date: Wed, 15 Jun 2016 16:53:01 +0200 [thread overview]
Message-ID: <0cab2e01-6345-387d-d5ca-cafc62bc3b2e@redhat.com> (raw)
In-Reply-To: <20160615142532.GE32588@pd.tnic>
On 15/06/2016 16:25, Borislav Petkov wrote:
> As to the error message, dear LKP friends, it happens because -cpu kvm64
> on native Intel hands in CPUID bits of the host, i.e., if you do this in
> the guest:
>
> $ grep epb /proc/cpuinfo
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc nopl eagerfpu pni cx16 x2apic hypervisor epb
>
> you should have "epb" there too which is among those bits.
Hmm, no, it doesn't work like that.
EPB is bit 3 of CPUID[6].ECX. Under KVM you should only ever see bit 2
of EAX set in that leaf (ARAT).
> I can reproduce the same issue on an AMD host too by booting my guest
> with
>
> "-cpu kvm64,vendor=GenuineIntel"
I cannot reproduce it with 4.6.0-rc3 in the (Fedora 22 AMD) host and
4.7.0-rc2 in the (Fedora 21) guest. QEMU is 2.4.1.
> Paolo, Eduardo, question: can we hide certain CPUID bits from the guest
> when booting with -cpu kvm64?
>
> In general, is there a way I can set or clear arbitrary CPUID bits so
> that the guest sees what I want it to see?
>
> And I don't mean the predefined CPUID flags which you toggle with "+" or
> "-" followed by flag name. Because -cpu kvm64,-epb doesn't work.
It doesn't work because QEMU has no idea of what EPB even is. That bit
really shouldn't be set.
Can you bounce me the original report?
Paolo
next prev parent reply other threads:[~2016-06-15 14:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <57614955.l3IQMtSfaGPEBdCy%fengguang.wu@intel.com>
2016-06-15 14:25 ` Borislav Petkov
2016-06-15 14:51 ` Eduardo Habkost
2016-06-15 17:07 ` Borislav Petkov
2016-06-15 14:53 ` Paolo Bonzini [this message]
2016-06-15 17:23 ` Andy Lutomirski
2016-06-15 17:50 ` Borislav Petkov
2016-06-15 17:55 ` Andy Lutomirski
2016-06-15 18:07 ` Borislav Petkov
2016-06-15 18:12 ` Andy Lutomirski
2016-06-15 18:23 ` Borislav Petkov
2016-06-15 18:44 ` Andy Lutomirski
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=0cab2e01-6345-387d-d5ca-cafc62bc3b2e@redhat.com \
--to=pbonzini@redhat.com \
--cc=bp@alien8.de \
--cc=ehabkost@redhat.com \
--cc=fengguang.wu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@01.org \
--cc=luto@amacapital.net \
--cc=wfg@linux.intel.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
all inboxes | Powered by JetHome®