xemu/hw/ppc
Alexey Kardashevskiy 74dd27cecb spapr_pci: Fix number of returned vectors in ibm, change-msi
Current guest kernels try allocating as many vectors as the quota is.
For example, in the case of virtio-net (which has just 3 vectors)
the guest requests 4 vectors (that is the quota in the test) and
the existing ibm,change-msi handler returns 4. But before it returns,
it calls msix_set_message() in a loop and corrupts memory behind
the end of msix_table.

This limits the number of vectors returned by ibm,change-msi to
the maximum supported by the actual device.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: qemu-stable@nongnu.org
[agraf: squash in bugfix from aik]
Signed-off-by: Alexander Graf <agraf@suse.de>
(cherry picked from commit b26696b519)

*s/error_report/fprintf/ to reflect v1.7.x error reporting style

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-06-29 15:58:43 -05:00
..
Makefile.objs pseries: move interrupt controllers to hw/intc/ 2013-07-11 18:51:23 +02:00
e500-ccsr.h ppc: do not use ../ in include files 2013-03-01 13:57:33 +01:00
e500.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
e500.h ppc: Don't duplicate QEMUMachineInitArgs in PPCE500Params 2013-08-21 23:22:22 +03:00
e500plat.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mac.h PPC: dbdma: Wait for DMA until we have data 2013-07-11 18:51:25 +02:00
mac_newworld.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mac_oldworld.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mpc8544_guts.c cpu: Replace cpu_single_env with CPUState current_cpu 2013-07-09 21:20:28 +02:00
mpc8544ds.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
ppc.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
ppc4xx_devs.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
ppc4xx_pci.c hw/p*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
ppc405.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
ppc405_boards.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
ppc405_uc.c ppc405_uc: Disable debug output 2013-09-02 10:06:41 +02:00
ppc440_bamboo.c loader: drop return value for rom_add_blob_fixed 2013-11-10 12:08:38 +02:00
ppc_booke.c PPC: BookE: Make FIT/WDT timers at best millisecond grained 2013-11-25 20:35:12 -08:00
ppce500_spin.c ppce500_spin: QOM cast cleanup 2013-07-29 21:07:00 +02:00
prep.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
spapr.c Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-10-31 17:01:43 +01:00
spapr_events.c spapr-rtas: add CPU argument to RTAS calls 2013-07-01 01:11:16 +02:00
spapr_hcall.c spapr-rtas: fix h_rtas parameters reading 2013-10-25 23:25:46 +02:00
spapr_iommu.c PPC: spapr: iommu: rework traces 2013-09-02 10:06:43 +02:00
spapr_pci.c spapr_pci: Fix number of returned vectors in ibm, change-msi 2014-06-29 15:58:43 -05:00
spapr_rtas.c spapr: add "stop-self" RTAS call required to support hot CPU unplug 2013-09-02 10:06:42 +02:00
spapr_vio.c spapr: Rename 'dprintf' to 'DPRINTF' 2013-07-29 19:56:46 -05:00
virtex_ml507.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00