qemu-e2k/hw/ppc
Bharata B Rao b41d320fef spapr: Handle failure of KVM_PPC_ALLOCATE_HTAB ioctl
KVM_PPC_ALLOCATE_HTAB ioctl can return -ENOMEM for KVM guests and QEMU
never handled this correctly. But this didn't cause any problems till
now as KVM_PPC_ALLOCATE_HTAB ioctl returned with smaller than requested
HTAB when enough contiguous memory wasn't available in the host.
After the proposed kernel change: https://patchwork.ozlabs.org/patch/530501/,
KVM_PPC_ALLOCATE_HTAB ioctl will not fallback to lower sized HTAB
allocation and will fail if requested HTAB size can't be met.

Check for such failures in QEMU and abort appropriately. This will
prevent guest kernel from hanging/freezing during early boot by doing
graceful exit when host is unable to allocate requested HTAB.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2015-11-11 13:29:04 +11:00
..
e500-ccsr.h
e500.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00
e500.h
e500plat.c Use DEFINE_MACHINE() to register all machines 2015-09-19 16:40:15 +02:00
mac_newworld.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00
mac_oldworld.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00
mac.h
Makefile.objs ppc/spapr: Implement H_RANDOM hypercall in QEMU 2015-09-23 10:51:11 +10:00
mpc8544_guts.c
mpc8544ds.c Use DEFINE_MACHINE() to register all machines 2015-09-19 16:40:15 +02:00
ppc4xx_devs.c
ppc4xx_pci.c
ppc405_boards.c Revert use of DEFINE_MACHINE() for registrations of multiple machines 2015-09-19 16:40:27 +02:00
ppc405_uc.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
ppc405.h
ppc440_bamboo.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00
ppc_booke.c
ppc.c s/cpu_get_real_ticks/cpu_get_host_ticks/ 2015-10-08 19:46:01 +03:00
ppce500_spin.c
prep.c prep: do not use CPU_LOG_IOPORT, convert to tracepoints 2015-10-23 12:38:28 +11:00
spapr_drc.c spapr: Don't use QOM [*] syntax for DR connectors. 2015-09-23 10:51:10 +10:00
spapr_events.c spapr: Support hotplug by specifying DRC count 2015-09-23 10:51:11 +10:00
spapr_hcall.c spapr: Support ibm,dynamic-reconfiguration-memory 2015-09-23 10:51:10 +10:00
spapr_iommu.c spapr_iommu: Provide a function to switch a TCE table to allowing VFIO 2015-10-23 10:38:10 +11:00
spapr_pci_vfio.c sPAPR: Enable EEH on VFIO PCI device only 2015-09-23 10:51:11 +10:00
spapr_pci.c spapr_pci: Allow VFIO devices to work on the normal PCI host bridge 2015-10-23 10:38:10 +11:00
spapr_rng.c ppc/spapr: Implement H_RANDOM hypercall in QEMU 2015-09-23 10:51:11 +10:00
spapr_rtas.c spapr_drc: use RTAS return codes for methods called by RTAS 2015-09-23 10:51:10 +10:00
spapr_rtc.c timer: rename NSEC_PER_SEC due to Mac OS X header clash 2015-07-20 17:01:00 +01:00
spapr_vio.c spapr: Merge sPAPREnvironment into sPAPRMachineState 2015-07-07 17:44:50 +02:00
spapr.c spapr: Handle failure of KVM_PPC_ALLOCATE_HTAB ioctl 2015-11-11 13:29:04 +11:00
virtex_ml507.c ppc: Rename ELF_MACHINE to be PPC specific 2015-09-25 12:04:44 +02:00