qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 15/18] usb-host: tag as unmigratable


From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 15/18] usb-host: tag as unmigratable
Date: Fri, 2 Sep 2011 11:56:44 +0200

Signed-off-by: Gerd Hoffmann <address@hidden>
---
 usb-linux.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 7995178..390bcd3 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -1354,10 +1354,16 @@ out:
     return 0;
 }
 
+static const VMStateDescription vmstate_usb_host = {
+    .name = "usb-host",
+    .unmigratable = 1,
+};
+
 static struct USBDeviceInfo usb_host_dev_info = {
     .product_desc   = "USB Host Device",
     .qdev.name      = "usb-host",
     .qdev.size      = sizeof(USBHostDevice),
+    .qdev.vmsd      = &vmstate_usb_host,
     .init           = usb_host_initfn,
     .handle_packet  = usb_generic_handle_packet,
     .cancel_packet  = usb_host_async_cancel,
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]