diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-07-05 15:58:44 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-10 13:44:30 -0500 |
commit | 4bfd1712d787db62586e620cb84d35f6afa5b772 (patch) | |
tree | 869c05f9ee1578c29b85d7311bde924dcb20320b | |
parent | 3f6a3ee51ebd1e86c48ff1216f5caf9785913ab5 (diff) |
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>
-rw-r--r-- | hw/msix.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |