qemu/virtio-pci: remove unnecessary check
it's safe to call msix_write_config if msix is disabled, so call it unconditionally on pci config write. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5a1fc5e852
commit
85352471ce
|
@ -373,8 +373,7 @@ static void virtio_write_config(PCIDevice *pci_dev, uint32_t address,
|
||||||
}
|
}
|
||||||
|
|
||||||
pci_default_write_config(pci_dev, address, val, len);
|
pci_default_write_config(pci_dev, address, val, len);
|
||||||
if(proxy->vdev->nvectors)
|
msix_write_config(pci_dev, address, val, len);
|
||||||
msix_write_config(pci_dev, address, val, len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const VirtIOBindings virtio_pci_bindings = {
|
static const VirtIOBindings virtio_pci_bindings = {
|
||||||
|
|
Loading…
Reference in a new issue