Commit 4bfd1712d787db62586e620cb84d35f6afa5b772
Committed by
Anthony Liguori
1 parent
3f6a3ee5
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 <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
1 additions
and
0 deletions
hw/msix.c
... | ... | @@ -302,6 +302,7 @@ void msix_load(PCIDevice *dev, QEMUFile *f) |
302 | 302 | return; |
303 | 303 | } |
304 | 304 | |
305 | + msix_free_irq_entries(dev); | |
305 | 306 | qemu_get_buffer(f, dev->msix_table_page, n * MSIX_ENTRY_SIZE); |
306 | 307 | qemu_get_buffer(f, dev->msix_table_page + MSIX_PAGE_PENDING, (n + 7) / 8); |
307 | 308 | } | ... | ... |