pci/aer: fix interrupt on config write
commit2b3cb353e7af7a90eec22ba9720dcef2a80c7f6f
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Dec 2010 08:46:26 +0000 (8 17:46 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Dec 2010 10:48:27 +0000 (9 12:48 +0200)
tree1f2fcffe4c80f6c66e6ede0e05ed315992f71fd1
parentc3f33667a64a6de0b92106c862247d97d81490ef
pci/aer: fix interrupt on config write

config write handling for aer seems broken:
For example, it won't clear a level interrupt
when command register is set to 0.

Make it match the spec: level should equal
the logical or of enabled bits, msi only
be sent when the logical or changes.

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