[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 4bfd171] qemu/msi: clean used vectors state on lo
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 4bfd171] qemu/msi: clean used vectors state on load |
Date: |
Fri, 10 Jul 2009 20:40:30 -0000 |
From: Michael S. Tsirkin <address@hidden>
Clean up msix vector usage state on load. Since guest might have control
over it through the device, the device will have to load this state from
file.
Signed-off-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/msix.c b/hw/msix.c
index e130857..47e0140 100644
--- a/hw/msix.c
+++ b/hw/msix.c
@@ -302,6 +302,7 @@ void msix_load(PCIDevice *dev, QEMUFile *f)
return;
}
+ msix_free_irq_entries(dev);
qemu_get_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE);
qemu_get_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 4bfd171] qemu/msi: clean used vectors state on load,
Anthony Liguori <=