pci/aer: fix error injection
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Dec 2010 08:46:25 +0000 (17:46 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Dec 2010 10:48:26 +0000 (12:48 +0200)
commitebcb80b623c321ac933a9ab864d3640375a84bf3
tree508fe4cb02ac8d22f93551d13d50c85e1ca5c1d4
parent5e4ee93b9226599a60f214d3daa99b91d5412864
pci/aer: fix error injection

Fix the injection logic upon aer message to follow 6.2.4.1.2 more
closely: specifically only send an msi interrupt when the logical or of
the enabled bits changed, not when a bit which was previously clear
becomes set.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
hw/pcie_aer.c