qemu-e2k/hw/ppc
David Gibson 7843c0d60d pseries: Move CPU compatibility property to machine
Server class POWER CPUs have a "compat" property, which is used to set the
backwards compatibility mode for the processor.  However, this only makes
sense for machine types which don't give the guest access to hypervisor
privilege - otherwise the compatibility level is under the guest's control.

To reflect this, this removes the CPU 'compat' property and instead
creates a 'max-cpu-compat' property on the pseries machine.  Strictly
speaking this breaks compatibility, but AFAIK the 'compat' option was
never (directly) used with -device or device_add.

The option was used with -cpu.  So, to maintain compatibility, this
patch adds a hack to the cpu option parsing to strip out any compat
options supplied with -cpu and set them on the machine property
instead of the now deprecated cpu property.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Tested-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Tested-by: Greg Kurz <groug@kaod.org>
Tested-by: Andrea Bolognani <abologna@redhat.com>
2017-06-30 14:03:31 +10:00
..
e500-ccsr.h
e500.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
e500.h
e500plat.c
fdt.c
mac_newworld.c ppc: add qemu_vga.ndrv ROM to fw_cfg interface for NewWorld Macs 2017-05-11 09:45:15 +10:00
mac_oldworld.c ppc: add qemu_vga.ndrv ROM to fw_cfg interface for OldWorld Macs 2017-05-11 09:45:15 +10:00
mac.h
Makefile.objs
mpc8544_guts.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
mpc8544ds.c
pnv_bmc.c
pnv_core.c pnv-core: use get_uint() for "core-pir" property 2017-06-20 14:31:33 +02:00
pnv_lpc.c
pnv_occ.c
pnv_psi.c xics: introduce macros for ICP/ICS link properties 2017-06-09 12:12:34 +10:00
pnv_xscom.c
pnv.c object: use more specific property type names 2017-06-20 14:31:32 +02:00
ppc4xx_devs.c
ppc4xx_pci.c qdev: Replace cannot_instantiate_with_device_add_yet with !user_creatable 2017-05-17 10:37:00 -03:00
ppc405_boards.c
ppc405_uc.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
ppc405.h
ppc440_bamboo.c
ppc_booke.c ppc_booke: drop useless assignment 2017-05-07 09:57:51 +03:00
ppc.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
ppce500_spin.c
prep_systemio.c
prep.c hw/ppc/prep: Remove superfluous call to soundhw_init() 2017-06-30 14:03:31 +10:00
rs6000_mc.c
spapr_cpu_core.c pseries: Move CPU compatibility property to machine 2017-06-30 14:03:31 +10:00
spapr_drc.c Revert "spapr: fix memory hot-unplugging" 2017-06-09 12:35:46 +10:00
spapr_events.c spapr: Clean up spapr_dr_connector_by_*() 2017-06-06 09:24:08 +10:00
spapr_hcall.c pseries: Move CPU compatibility property to machine 2017-06-30 14:03:31 +10:00
spapr_iommu.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
spapr_ovec.c
spapr_pci_vfio.c
spapr_pci.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
spapr_rng.c
spapr_rtas_ddw.c
spapr_rtas.c pseries: Correct panic behaviour for pseries machine type 2017-06-08 14:38:18 +10:00
spapr_rtc.c
spapr_vio.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00
spapr.c pseries: Move CPU compatibility property to machine 2017-06-30 14:03:31 +10:00
trace-events spapr: Clean up handling of DR-indicator 2017-06-08 14:38:26 +10:00
virtex_ml507.c