If the migration destination specifies an assigned device, qemu will
segfault because there is always expected to be an end marker for
fields.  Add to our dummy VMStateDescription to avoid this.

Signed-off-by: Alex Williamson <[email protected]>
---

 hw/device-assignment.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 8446cd4..64636ce 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -1689,7 +1689,10 @@ static void 
assigned_dev_unregister_msix_mmio(AssignedDevice *dev)
 }
 
 static const VMStateDescription vmstate_assigned_device = {
-    .name = "pci-assign"
+    .name = "pci-assign",
+    .fields = (VMStateField []) {
+        VMSTATE_END_OF_LIST()
+    }
 };
 
 static void reset_assigned_device(DeviceState *dev)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to