]> git.proxmox.com Git - qemu.git/commitdiff
usb-net doesn't support migration
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2011 08:06:07 +0000 (10:06 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2011 12:49:41 +0000 (14:49 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-net.c

index 9be709f7cfdb762c60e1dec0ec3ff24590f33514..4212e5b3c5e2fbf141954c90e2c20b576acaaf5a 100644 (file)
@@ -1414,11 +1414,17 @@ static USBDevice *usb_net_init(const char *cmdline)
     return dev;
 }
 
+static const VMStateDescription vmstate_usb_net = {
+    .name = "usb-net",
+    .unmigratable = 1,
+};
+
 static struct USBDeviceInfo net_info = {
     .product_desc   = "QEMU USB Network Interface",
     .qdev.name      = "usb-net",
     .qdev.fw_name    = "network",
     .qdev.size      = sizeof(USBNetState),
+    .qdev.vmsd      = &vmstate_usb_net,
     .usb_desc       = &desc_net,
     .init           = usb_net_initfn,
     .handle_packet  = usb_generic_handle_packet,