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