qemu/include/hw/i386
Eduardo Habkost 9337e3b6e1 target-i386: Disable PMU CPUID leaf by default
Bug description: QEMU currently gets all bits from GET_SUPPORTED_CPUID
for CPUID leaf 0xA and passes them directly to the guest. This makes
the guest ABI depend on host kernel and host CPU capabilities, and
breaks live migration if we migrate between hosts with different
capabilities (e.g., different number of PMU counters).

Add a "pmu" property to X86CPU, and set it to true only on "-cpu host",
or on pc-*-1.5 and older machine-types.

For now, setting pmu=on will enable the current passthrough mode that
doesn't have any ABI stability guarantees, but in the future we may
implement a mode where the PMU CPUID bits are stable and configurable.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-07-29 15:29:16 +02:00
..
apic_internal.h target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
apic-msidef.h
apic.h
ich9.h ich9: kill cmos_s3 2013-04-24 11:50:18 -05:00
ioapic_internal.h
ioapic.h
pc.h target-i386: Disable PMU CPUID leaf by default 2013-07-29 15:29:16 +02:00
smbios.h smbios: Clean up smbios_add_field() parameters 2013-06-14 08:58:57 -05:00