All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Huang(Peng)" <peter.huangpeng@huawei.com>
To: <qemu-devel@nongnu.org>, <mtosatti@redhat.com>, <kvm@vger.kernel.org>
Subject: Re: [Question] why x2apic's set by default without host support(on Nehalem CPU).
Date: Mon, 22 Jul 2013 20:36:05 +0800	[thread overview]
Message-ID: <51ED2735.3050107@huawei.com> (raw)
In-Reply-To: <51ED1668.7030205@huawei.com>

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

I traced the qemu process, and find out that host cpuid doesn't support x2apic,
but VM interception seems enabled x2apic.

with function=1(bit 21 indicates x2apic)
host_cpuid:ecx=0x009ce3bd
guest_cpuid:ecx=0x00b82201

On 2013-07-22 19:24, Peter Huang(Peng) wrote:
> Hi, Everyone
>
> I have been encountered a problem recently.
> My box uses Nehalem E5520 CPU, and this model doesn't support x2apic feature.
> I created a VM on KVM, and uses cpu mode=pass-through, I can get the right cpu
> model from the VM, but I can also see that the CPU in the vm supports x2apic.
>
> This seems werid.
> From QEMU's CPU model definition, Nehalem also doesn't support x2apic.
>
> Can anyone explain it?
>
> Thanks to you all!
>
> Below is the cpuinfo from host and guest:
> host:
> fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
>  dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc
> arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2
> popcnt lahf_lm dtherm tpr_shadow vnmi flexpriority ept vpid
>
> vm:
> fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
> mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon rep_good
>  nopl pni ssse3 cx16 sse4_1 sse4_2 *x2apic *popcnt hypervisor lahf_lm

[-- Attachment #2: Type: text/html, Size: 3862 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: "Peter Huang(Peng)" <peter.huangpeng@huawei.com>
To: qemu-devel@nongnu.org, mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).
Date: Mon, 22 Jul 2013 20:36:05 +0800	[thread overview]
Message-ID: <51ED2735.3050107@huawei.com> (raw)
In-Reply-To: <51ED1668.7030205@huawei.com>

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]

I traced the qemu process, and find out that host cpuid doesn't support x2apic,
but VM interception seems enabled x2apic.

with function=1(bit 21 indicates x2apic)
host_cpuid:ecx=0x009ce3bd
guest_cpuid:ecx=0x00b82201

On 2013-07-22 19:24, Peter Huang(Peng) wrote:
> Hi, Everyone
>
> I have been encountered a problem recently.
> My box uses Nehalem E5520 CPU, and this model doesn't support x2apic feature.
> I created a VM on KVM, and uses cpu mode=pass-through, I can get the right cpu
> model from the VM, but I can also see that the CPU in the vm supports x2apic.
>
> This seems werid.
> From QEMU's CPU model definition, Nehalem also doesn't support x2apic.
>
> Can anyone explain it?
>
> Thanks to you all!
>
> Below is the cpuinfo from host and guest:
> host:
> fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
>  dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc
> arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2
> popcnt lahf_lm dtherm tpr_shadow vnmi flexpriority ept vpid
>
> vm:
> fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
> mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon rep_good
>  nopl pni ssse3 cx16 sse4_1 sse4_2 *x2apic *popcnt hypervisor lahf_lm

[-- Attachment #2: Type: text/html, Size: 3862 bytes --]

  reply	other threads:[~2013-07-22 12:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 11:24 [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU) Peter Huang(Peng)
2013-07-22 12:36 ` Peter Huang(Peng) [this message]
2013-07-22 12:36   ` Peter Huang(Peng)
2013-07-22 23:55   ` Marcelo Tosatti
2013-07-22 23:55     ` [Qemu-devel] " Marcelo Tosatti
2013-07-23  2:38     ` Peter Huang(Peng)
2013-07-23  2:38       ` [Qemu-devel] " Peter Huang(Peng)
2013-07-22 13:41 ` Eduardo Habkost
2013-07-23  2:44   ` Peter Huang(Peng)
2013-07-23 11:27     ` Jiri Denemark
2013-07-24  0:48       ` Peter Huang(Peng)
2013-07-24  2:54         ` [Qemu-devel] [Solved]FYI//Re: " Peter Huang(Peng)

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=51ED2735.3050107@huawei.com \
    --to=peter.huangpeng@huawei.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.