pci: avoid losing config updates to MSI/MSIX cap regs
commitd7efb7e08e5edaac23b0dc824f72c3f353447c39
authorKnut Omang <knut.omang@oracle.com>
Tue, 2 Sep 2014 11:00:04 +0000 (2 13:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 2 Sep 2014 14:28:26 +0000 (2 17:28 +0300)
treeb623b038d7cddd9546847b4f071007e8c61c31a7
parent0187c7989a5cedd4f88bba76839cc9c44fb3fc81
pci: avoid losing config updates to MSI/MSIX cap regs

Since
commit 95d658002401e2e47a5404298ebe9508846e8a39
    msi: Invoke msi/msix_write_config from PCI core
msix config writes are lost, the value written is always 0.

Fix pci_default_write_config to avoid this.

Cc: qemu-stable@nongnu.org
Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c