From 4bfd1712d787db62586e620cb84d35f6afa5b772 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Sun, 5 Jul 2009 15:58:44 +0300 Subject: [PATCH] qemu/msi: clean used vectors state on load 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 Signed-off-by: Anthony Liguori --- hw/msix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/msix.c b/hw/msix.c index e1308572..47e01401 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); } -- 2.11.4.GIT