qemu-e2k/hw/ppc
Daniel Henrique Barboza b873ed8331 ppc/pef.c: initialize cgs->ready in kvmppc_svm_init()
QEMU is failing to launch a CGS pSeries guest in a host that has PEF
support:

qemu-system-ppc64: ../softmmu/vl.c:2585: qemu_machine_creation_done: Assertion `machine->cgs->ready' failed.
Aborted

This is happening because we're not setting the cgs->ready flag that is
asserted in qemu_machine_creation_done() during machine start.

cgs->ready is set in s390_pv_kvm_init() and sev_kvm_init(). Let's set it
in kvmppc_svm_init() as well.

Reported-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20210528201619.52363-1-danielhb413@gmail.com>
Acked-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-06-03 18:10:31 +10:00
..
e500-ccsr.h
e500.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
e500.h
e500plat.c hw/ppc/e500plat: Only try to add valid dynamic sysbus devices to platform bus 2021-04-06 11:49:14 +01:00
fdt.c
fw_cfg.c
Kconfig hw/mem/nvdimm: Use Kconfig 'imply' instead of 'depends on' 2021-05-26 14:49:45 +02:00
mac_newworld.c ppc patch queue 2021-05-04 2021-05-05 20:29:14 +01:00
mac_oldworld.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
mac.h
meson.build hw/ppc: moved hcalls that depend on softmmu 2021-05-19 10:30:28 +10:00
mpc8544_guts.c
mpc8544ds.c
pef.c ppc/pef.c: initialize cgs->ready in kvmppc_svm_init() 2021-06-03 18:10:31 +10:00
pegasos2.c hw/ppc: Add emulation of Genesi/bPlan Pegasos II 2021-05-04 11:41:25 +10:00
pnv_bmc.c
pnv_core.c hw/ppc/pnv_core: Update hflags after setting msr 2021-05-04 11:41:24 +10:00
pnv_homer.c
pnv_lpc.c
pnv_occ.c
pnv_pnor.c hw: Do not include qemu/log.h if it is not necessary 2021-05-02 17:24:50 +02:00
pnv_psi.c ppc patch queue 2021-05-04 2021-05-05 20:29:14 +01:00
pnv_xscom.c
pnv.c hw/ppc: moved has_spr to cpu.h 2021-05-19 10:30:28 +10:00
ppc4xx_devs.c Do not include hw/boards.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc4xx_pci.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc405_boards.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc405_uc.c hw: Do not include qemu/log.h if it is not necessary 2021-05-02 17:24:50 +02:00
ppc405.h
ppc440_bamboo.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc440_pcix.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc440_uc.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppc440.h
ppc_booke.c hw: Do not include qemu/log.h if it is not necessary 2021-05-02 17:24:50 +02:00
ppc.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
ppce500_spin.c
prep_systemio.c
prep.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
rs6000_mc.c Do not include hw/boards.h if it's not really necessary 2021-05-02 17:24:51 +02:00
sam460ex.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_caps.c target/ppc: moved function out of mmu-hash64 2021-05-19 10:30:28 +10:00
spapr_cpu_core.c
spapr_drc.c ppc patch queue 2021-05-04 2021-05-05 20:29:14 +01:00
spapr_events.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_hcall.c hw/ppc: moved has_spr to cpu.h 2021-05-19 10:30:28 +10:00
spapr_iommu.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_irq.c
spapr_numa.c
spapr_nvdimm.c spapr: nvdimm: Fix the persistent-memory root node name in device tree 2021-06-03 13:22:06 +10:00
spapr_ovec.c
spapr_pci_nvlink2.c
spapr_pci_vfio.c spapr: Fix EEH capability issue on KVM guest for PCI passthru 2021-06-03 13:22:06 +10:00
spapr_pci.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_rng.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_rtas_ddw.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_rtas.c spapr: Set LPCR to current AIL mode when starting a new CPU 2021-06-03 13:22:06 +10:00
spapr_rtc.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_softmmu.c hw/ppc: moved hcalls that depend on softmmu 2021-05-19 10:30:28 +10:00
spapr_tpm_proxy.c Do not include cpu.h if it's not really necessary 2021-05-02 17:24:51 +02:00
spapr_vio.c hw/ppc/spapr_vio: Reset TCE table object with device_cold_reset() 2021-05-04 13:12:59 +10:00
spapr.c spapr: Don't hijack current_machine->boot_order 2021-06-03 13:22:06 +10:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
virtex_ml507.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00