Message ID | D3E216785288A145B7BC975F83A2ED103FE3FFD7@szxeml556-mbx.china.huawei.com |
---|---|
State | New |
Headers | show |
--- a/hw/i386/kvm/pci-assign.c 2013-05-04 15:53:18.000000000 +0800 +++ b/hw/i386/kvm/pci-assign.c 2013-05-04 15:50:46.000000000 +0800 @@ -1576,6 +1576,8 @@ static void assigned_dev_msix_mmio_write MSIMessage msg; int ret; + /* Needless to update msi route when only msi-x entry "control" section changed */ + if ((addr & (PCI_MSIX_ENTRY_SIZE - 1)) != PCI_MSIX_ENTRY_VECTOR_CTRL){ msg.address = entry->addr_lo | ((uint64_t)entry->addr_hi << 32); msg.data = entry->data; @@ -1585,6 +1587,7 @@ static void assigned_dev_msix_mmio_write if (ret) { error_report("Error updating irq routing entry (%d)", ret); } + } } } }