From: Gleb Natapov <gleb@redhat.com>
To: developer wang <developer.pw@gmail.com>
Cc: qemu-developer-mail-list <Qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Is qemu (version 1.0) support to emulate the CPU feture "x2APIC"?
Date: Wed, 7 Mar 2012 16:01:39 +0200 [thread overview]
Message-ID: <20120307140139.GK2521@redhat.com> (raw)
In-Reply-To: <CACV-KZryD4GLGJp-1di7qePbNO84V3GUDaeSvvqob03S4C-Dyw@mail.gmail.com>
On Wed, Mar 07, 2012 at 09:54:28PM +0800, developer wang wrote:
> Hi,
>
> I want to use qemu (version 1.0) to emulate guest systems with x2APIC enabled.
>
> But when I use qemu to emulate CPU's feture "x2APIC", I didn't find
> it in /proc/cpuinfo.
>
x2apic is supported only if kvm is used and only with in kernel irqchip
emulation (which is still not default in qemu upstream IIRC). Try with
qemu-kvm.
> And I saw the source code of qemu.
>
> I only find a single define (#define CPUID_EXE_X2APIC (1<<21) )
>
> but no other places use this this define.
>
> Does this mean qemu now doesn't support to emulate the CPU's feture
> of "x2APIC"?
>
>
>
> Our host machine is running Debian 6, and the host system has x2APIC support.
>
> I use the following command to run qemu:
>
> qemu-system-x86_64 -nographic -cpu qemu64,+x2apic -serial
> mon:/dev/tty -hda ~/debian6.qcow2
>
> After the guest (also Debian 6) boots up, I can't see x2apic in /proc/cpuinfo.
>
> Our host machine's CPU features:
>
> model name : Intel(R) Xeon(R) CPU E7- 4850 @ 2.00GHz
> flags : 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 pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts
> rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64
> monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2
> x2apic popcnt aes lahf_lm ida arat dts tpr_shadow vnmi flexpriority
> ept vpid
>
> The CPU feature from the guest emulated by QEMU:
>
> model name : QEMU Virtual CPU version 1.0,1
> flags : fpu pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm up pni cx16
> popcnt hypervisor lahf_lm svm abm sse4a
--
Gleb.
prev parent reply other threads:[~2012-03-07 14:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 13:54 [Qemu-devel] Is qemu (version 1.0) support to emulate the CPU feture "x2APIC"? developer wang
2012-03-07 14:01 ` Gleb Natapov [this message]
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=20120307140139.GK2521@redhat.com \
--to=gleb@redhat.com \
--cc=Qemu-devel@nongnu.org \
--cc=developer.pw@gmail.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;
as well as URLs for NNTP newsgroup(s).