From: Hidetoshi Seto <[email protected]>

Accidentally a pci_read_long() was replaced with assigned_dev_pci_read_byte()
by the commit:
 commit a81a1f0a7410976be7dbc9a81524a8640f446ab5
 Author: Alex Williamson <[email protected]>
    device-assignment: Don't use libpci

Signed-off-by: Hidetoshi Seto <[email protected]>
Acked-by: Alex Williamson <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index ba02157..20ed934 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -1284,7 +1284,7 @@ static int assigned_device_pci_cap_init(PCIDevice 
*pci_dev)
                       pci_dev->cap.length + PCI_MSIX_TABLE) = msix_table_entry;
         *(uint32_t *)(pci_dev->config + pci_dev->cap.start +
                       pci_dev->cap.length + PCI_MSIX_PBA) =
-                    assigned_dev_pci_read_byte(pci_dev, pos + PCI_MSIX_PBA);
+                    assigned_dev_pci_read_long(pci_dev, pos + PCI_MSIX_PBA);
         bar_nr = msix_table_entry & PCI_MSIX_BIR;
         msix_table_entry &= ~PCI_MSIX_BIR;
         dev->msix_table_addr = pci_region[bar_nr].base_addr + msix_table_entry;
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to