mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
msix: simplify write config
use pci_device_deassert_intx(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
59369b0816
commit
e407bf13ba
1 changed files with 1 additions and 4 deletions
|
@ -159,7 +159,6 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
|
|||
{
|
||||
unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET;
|
||||
int vector;
|
||||
int i;
|
||||
|
||||
if (!range_covers_byte(addr, len, enable_pos)) {
|
||||
return;
|
||||
|
@ -169,9 +168,7 @@ void msix_write_config(PCIDevice *dev, uint32_t addr,
|
|||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < PCI_NUM_PINS; ++i) {
|
||||
qemu_set_irq(dev->irq[i], 0);
|
||||
}
|
||||
pci_device_deassert_intx(dev);
|
||||
|
||||
if (msix_function_masked(dev)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue