summaryrefslogtreecommitdiffstats
path: root/hw/net
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2014-08-13 09:20:53 +0200
committerAlexander Graf2014-09-08 12:50:52 +0200
commit32420522482ffc20f8e9423af4f41f4e05ce3a56 (patch)
tree3291a2756ec895fd4e1f919573e359cdba2d3853 /hw/net
parentPPC: Cuda: Use cuda timer to expose tbfreq to guest (diff)
downloadqemu-32420522482ffc20f8e9423af4f41f4e05ce3a56.tar.gz
qemu-32420522482ffc20f8e9423af4f41f4e05ce3a56.tar.xz
qemu-32420522482ffc20f8e9423af4f41f4e05ce3a56.zip
spapr_pci: Fix config space corruption
When disabling MSI/MSIX via "ibm,change-msi" RTAS call, no check was made if MSI or MSIX is actually supported and the MSI message was reset unconditionally. If this happened on a device which does not support MSI (but does support MSIX, otherwise "ibm,change-msi" would not be called), this device would have PCIDevice::msi_cap field (MSI capability offset) set to zero and writing a vector would actually clear PCI status. This clears MSI message only if MSI or MSIX is present on a device. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/net')
0 files changed, 0 insertions, 0 deletions