qemu-irix/hw
Alexey Kardashevskiy 32c113c182 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)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-07-20 22:20:07 -05:00
..
9pfs hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
acpi acpi: Assert sts array limit on AcpiCpuHotplug_add() 2014-03-18 16:08:43 +02:00
alpha exec: Make stq_*_phys input an AddressSpace 2014-02-11 22:57:12 +10:00
arm pxa2xx: avoid buffer overrun on incoming migration 2014-07-20 22:05:55 -05:00
audio audio: Add 'static' attributes to several variables 2014-03-15 13:54:18 +04:00
block dataplane: replace iothread object_add() with embedded instance 2014-04-04 20:48:13 +02:00
bt Preparation for usb-bt-dongle conditional build 2013-09-10 11:14:41 +02:00
char char/serial: Fix emptyness handling 2014-04-07 14:51:32 +01:00
core fw-path-provider: Change GPL version to 2+ 2014-04-07 15:36:07 +02:00
cpu icc_bus: QOM'ify ICC 2013-12-24 18:02:18 +01:00
cris cris: Remove the CRIS PIC glue 2014-02-03 14:04:00 +00:00
display ssd0323: fix buffer overun on invalid state load 2014-07-20 22:05:55 -05:00
dma qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
gpio zaurus: fix buffer overrun on invalid state load 2014-07-20 22:05:55 -05:00
i2c i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
i386 acpi: fix tables for no-hpet configuration 2014-07-20 22:05:57 -05:00
ide ahci: fix buffer overrun on invalid state load 2014-07-20 22:05:53 -05:00
input tsc210x: fix buffer overrun on invalid state load 2014-07-20 22:05:55 -05:00
intc openpic: avoid buffer overrun on incoming migration 2014-07-20 22:05:54 -05:00
ipack ipack: Move IndustryPack out of hw/char/ 2014-02-14 21:11:53 +01:00
isa QOM infrastructure fixes and device conversions 2014-02-20 13:05:48 +00:00
lm32 hw/lm32: print error if cpu model is not found 2014-02-04 19:47:39 +01:00
m68k an5206: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
microblaze xilinx: Delete hw/include/xilinx.h 2014-02-26 14:54:45 +10:00
mips i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
misc tmp105: Read temperature in milli-celsius 2014-03-31 22:49:40 +02:00
moxie moxie: fix load_elf() usage 2014-03-05 03:06:46 +01:00
net stellaris_enet: block migration 2014-07-20 22:10:36 -05:00
nvram vl.c: Extend get_boot_devices_list() to ignore suffixes 2014-03-20 02:40:07 +01:00
openrisc openrisc-timer: Reduce overhead, Separate clock update functions 2013-11-20 21:46:45 +08:00
pci hw/pci/pcie_aer.c: fix buffer overruns on invalid state load 2014-07-20 22:05:54 -05:00
pci-bridge pci/shpc: convert SHPC hotplug to use hotplug-handler API 2014-02-10 10:27:00 +02:00
pci-host hw/pci-host/prep: Don't reverse IO accesses on bigendian hosts 2014-04-08 18:37:45 +01:00
pcmcia qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
ppc spapr_pci: Fix number of returned vectors in ibm, change-msi 2014-07-20 22:20:07 -05:00
s390x qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
scsi megasas: Implement LD_LIST_QUERY 2014-07-20 22:05:56 -05:00
sd ssi-sd: fix buffer overrun on invalid state load 2014-07-20 22:05:55 -05:00
sh4 cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
sparc sun4m: Add Sun CG3 framebuffer initialisation function 2014-02-27 10:01:41 +00:00
sparc64 pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
ssi pl022: fix buffer overun on invalid state load 2014-07-20 22:05:54 -05:00
timer hpet: fix buffer overrun on invalid state load 2014-07-20 22:05:53 -05:00
tpm aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
unicore32 console: add head to index to qemu consoles. 2014-03-05 09:52:04 +01:00
usb usb: sanity check setup_index+setup_len in post_load 2014-07-20 22:05:55 -05:00
virtio virtio: validate num_sg when mapping 2014-07-20 22:05:54 -05:00
watchdog qemu-option: Remove qemu_opts_create_nofail 2014-01-06 15:02:30 -05:00
xen Call pci_piix3_xen_ide_unplug from unplug_disks 2014-02-20 17:28:08 +00:00
xtensa hw/xtensa: add support for ML605 and KC705 FPGA board 2014-02-24 04:47:01 +04:00
Makefile.objs hw/9pfs: Include virtio-9p-device.o in build 2014-03-04 09:20:49 +05:30