]> Git Repo - qemu.git/commit
spapr_pci: Fix number of returned vectors in ibm, change-msi
authorAlexey Kardashevskiy <[email protected]>
Mon, 7 Apr 2014 12:53:21 +0000 (22:53 +1000)
committerAlexander Graf <[email protected]>
Mon, 16 Jun 2014 11:24:27 +0000 (13:24 +0200)
commitb26696b519f853c9844e5154858e583600ee3cdc
treee8dc4d0e09d486653ea79c9d05dff60ddf39a5dd
parentfabe9ee1133b606390f6ca463ddb490051cba760
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 <[email protected]>
Cc: [email protected]
[agraf: squash in bugfix from aik]
Signed-off-by: Alexander Graf <[email protected]>
hw/ppc/spapr_pci.c
This page took 0.023244 seconds and 4 git commands to generate.