diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-11 11:42:40 -0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-06-07 17:19:00 +0300 |
commit | 95d658002401e2e47a5404298ebe9508846e8a39 (patch) | |
tree | 36826830f860f95a07f0f83b21c4cd7d8ee072c7 /hw/pci.c | |
parent | 7c9958b04333a79a1fdb11583aca48a6df2edeb9 (diff) |
msi: Invoke msi/msix_write_config from PCI core
Also this functions is better invoked by the core than by each and every
device. This allows to drop the config_write callbacks from ich and
intel-hda.
CC: Alexander Graf <agraf@suse.de>
CC: Gerd Hoffmann <kraxel@redhat.com>
CC: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1042,6 +1042,9 @@ void pci_default_write_config(PCIDevice *d, uint32_t addr, uint32_t val, int l) if (range_covers_byte(addr, l, PCI_COMMAND)) pci_update_irq_disabled(d, was_irq_disabled); + + msi_write_config(d, addr, val, l); + msix_write_config(d, addr, val, l); } /***********************************************************/ |