qemu-e2k/include/hw/i386
Eduardo Habkost f8e6a11aec target-i386: Set model=6 on qemu64 & qemu32 CPU models
There's no Intel CPU with family=6,model=2, and Linux and Windows guests
disable SEP when seeing that combination due to Pentium Pro erratum #82.

In addition to just having SEP ignored by guests, Skype (and maybe other
applications) runs sysenter directly without passing through ntdll on
Windows, and crashes because Windows ignored the SEP CPUID bit.

So, having model > 2 is a better default on qemu64 and qemu32 for two
reasons: making SEP really available for guests, and avoiding crashing
applications that work on bare metal.

model=3 would fix the problem, but it causes CPU enumeration problems
for Windows guests[1]. So let's set model=6, that matches "Athlon
(PM core)" on AMD and "P2 with on-die L2 cache" on Intel and it allows
Windows to use all CPUs as well as fixing sysenter.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=508623

Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-10-02 16:51:12 +02:00
..
apic_internal.h target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
apic-msidef.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ich9.h ich9: kill cmos_s3 2013-04-24 11:50:18 -05:00
ioapic_internal.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ioapic.h pc: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/ioapic.h 2013-07-29 19:33:32 -05:00
pc.h target-i386: Set model=6 on qemu64 & qemu32 CPU models 2013-10-02 16:51:12 +02:00
smbios.h smbios: Make multiple -smbios type= accumulate sanely 2013-09-28 23:49:39 +03:00