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