Skip to contentSkip to conversation

x86 system and x86-64 system emulation

Qemu-devel Natalia Portillo 4 participants 5 messages Apr 1, 2005 – Apr 2, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

I've just tested a CPU identification program I've made, under QEMU (x86 and x86_64 guests).

In QEMU (x86 guest), CPU says it is a "GenuineIntel" Pentium II (family 6, model 3, stepping 3), but following isn't in concordance:
Pentium II doesn't support nor SSE nor SSE2 and as far as I know also doesn't support FXSAVE/FXSTOR operands, and supports Virtual-86 Mode Enhacement. I think that the CPU model information should be updated, or, doing as VirtualPC, made it to be a "GenuineQEMU" CPU instead of a "GenuineIntel".

In the QEMU (x86-64 guest), CPU says it is a monoprocessor "AuthenticAMD" Athlon (family 6, model 2, stepping 3) in standard level and in extended level it says it is a multiprocessor non-existent "AuthenticAMD" processor (family B, model F, stepping D), and that it is an enginering sample.

According to AMD64 Architecture Programmer's Manual, Volume 3, order #24594, and to AMD Processor Recognition Application Note, order #20734, it should inform of family F in standard and extended level, and have an 8-bit brand id in the standard level or an 12-bit brand id in the extended level (but not both) informing the exact model of processor.

Also there is lacking emulation of 3DNow!, AMD extensions to MMX, a more features that is expected every x86-64 processor have.

#1 lore raw
Quoted 27 lines · Natalia Portillo

Hi!

I've just tested a CPU identification program I've made, under QEMU (x86 and x86_64 guests).

In QEMU (x86 guest), CPU says it is a "GenuineIntel" Pentium II (family 6, model 3, stepping 3), but following isn't in concordance:
Pentium II doesn't support nor SSE nor SSE2 and as far as I know also doesn't support FXSAVE/FXSTOR operands, and supports Virtual-86 Mode Enhacement.
I think that the CPU model information should be updated, or, doing as VirtualPC, made it to be a "GenuineQEMU" CPU instead of a "GenuineIntel".

In the QEMU (x86-64 guest), CPU says it is a monoprocessor "AuthenticAMD" Athlon (family 6, model 2, stepping 3) in standard level and in extended level it says it is a multiprocessor non-existent "AuthenticAMD" processor (family B, model F, stepping D), and that it is an enginering sample.

According to AMD64 Architecture Programmer's Manual, Volume 3, order #24594, and to AMD Processor Recognition Application Note, order #20734, it should inform of family F in standard and extended level, and have an 8-bit brand id in the standard level or an 12-bit brand id in the extended level (but not both) informing the exact model of processor.

Quoted 2 lines

Also there is lacking emulation of 3DNow!, AMD extensions to MMX, a more features that is expected every x86-64 processor have.

I don't think Intel's EM64T offering will support 3DNow! - so that would be a very poor assumption to make, given that the two are supposed to be largely compatible technologies.

But I would support the idea of returning some different CPUID string - perhaps something lite "QEMUSimulate" or some other 12-character sequence.

Signature · 3 lines
Antony T Curtis, BSc.                   UNIX, Linux, *BSD, Networking
[email protected]            C++, J2EE, Perl, MySQL, Apache
                                        IT Consultancy.
#2 lore raw
Quoted 3 lines · Antony T Curtis

But I would support the idea of returning some different CPUID string - perhaps something lite "QEMUSimulate" or some other 12-character sequence.

ActuallyQEMU :)

Jonas

#3 lore raw
In reply to Antony T Curtis

Organization: Free Software Network (http://www.fsn.hu/)
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; powerpc-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

Quoted 3 lines

But I would support the idea of returning some different CPUID string
- perhaps something lite "QEMUSimulate" or some other 12-character sequence.

IMHO this should be made user selectable.

Also dont forget to make this dependant of kqemu aswell, qemu should mirror the cpuid provided by the kqemu host.

Signature · 2 lines
Alex Beregszaszi 			e-mail: [email protected]
Free Software Network			cell: +36 70 3144424
#4 lore raw

I think that it should be by default something like "QEMUEmulate" or anything similar, and via selection, one of the manufacturers, but this selection should be also with a CPU selection. For example, I want to emulate an K6-2, so, be "AuthenticAMD". I want to emulate a Cyrix M6, be "CyrixInstead" and so on.

Quoted 27 lines · Alex Beregszaszi

Organization: Free Software Network (http://www.fsn.hu/)
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; powerpc-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

Quoted 3 lines

But I would support the idea of returning some different CPUID string
- perhaps something lite "QEMUSimulate" or some other 12-character sequence.

IMHO this should be made user selectable.

Also dont forget to make this dependant of kqemu aswell, qemu should mirror the cpuid provided by the kqemu host.

Signature · 8 lines
Alex Beregszaszi 			e-mail: [email protected]
Free Software Network			cell: +36 70 3144424


_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel