]> git.proxmox.com Git - mirror_qemu.git/commit
spapr_pci: Advertise MSI quota
authorBadari Pulavarty <pbadari@us.ibm.com>
Wed, 11 Jun 2014 08:49:33 +0000 (18:49 +1000)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:46 +0000 (13:24 +0200)
commit9dbae97723e964692364fb43012c6fa5448a661f
treebe1bb408902e1611a953552abedb7fa14dfcab53
parentd13fc32ecf8d810ec9894a35e1cfae81f7d88039
spapr_pci: Advertise MSI quota

Hotplug of multiple disks fails due to MSI vector quota check.
Number of MSI vectors default to 8 allowing only 4 devices.
This happens on RHEL6.5 guest. RHEL7 and SLES11 guests fallback
to INTX.

One way to workaround the issue is to increase total MSIs,
so that MSI quota check allows us to hotplug multiple disks.

This sets the quota to the maximum number of interupts XICS has
which is 1024 now (XICS_IRQS). This moves XICS_IRQS from spapr.c
to xics.h for wider visibility.

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
[aik: put XICS_IRQS=1024 instead of 64i, fixed endianness and size]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/spapr_pci.c
include/hw/ppc/xics.h