pcie_aer: clear cmask for Advanced Error Interrupt Message Number
authorJason Baron <jbaron@redhat.com>
Tue, 4 Sep 2012 20:22:46 +0000 (16:22 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Sep 2012 06:02:44 +0000 (09:02 +0300)
commit0e180d9c8a7429c55d23d2e7855f1e490a063aaa
tree4b2bff032a935ec9964d9d6af8991684bc14f5b0
parent1de53459272d89c52bb21b45d5d970de40fbb642
pcie_aer: clear cmask for Advanced Error Interrupt Message Number

The Advanced Error Interrupt Message Number (bits 31:27 of the Root
Error Status Register) is updated when the number of msi messages assigned to a
device changes. Migration of windows 7 on q35 chipset failed because the check
in get_pci_config_device() fails due to cmask being set on these bits. Its valid
to update these bits and we must restore this state across migration.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pcie_aer.c