diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-29 09:39:37 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-29 09:39:37 -0500 |
commit | e374560232776d4141866abc9f520c132b394926 (patch) | |
tree | 3a6eb078cb127fe8fc82422c8ce09e77d5983835 /hw/usb-msd.c | |
parent | c62f6d1d76aea587556c85b6b7b5c44167006264 (diff) | |
parent | 98e51ec92e678cf0e501b5ef013753ec8710e222 (diff) |
Merge remote-tracking branch 'kraxel/migration.2' into staging
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 6391dad108..cdeac581e3 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -616,11 +616,23 @@ static USBDevice *usb_msd_init(const char *filename) return dev; } +static const VMStateDescription vmstate_usb_msd = { + .name = "usb-storage", + .unmigratable = 1, /* FIXME: handle transactions which are in flight */ + .version_id = 1, + .minimum_version_id = 1, + .fields = (VMStateField []) { + VMSTATE_USB_DEVICE(dev, MSDState), + VMSTATE_END_OF_LIST() + } +}; + static struct USBDeviceInfo msd_info = { .product_desc = "QEMU USB MSD", .qdev.name = "usb-storage", .qdev.fw_name = "storage", .qdev.size = sizeof(MSDState), + .qdev.vmsd = &vmstate_usb_msd, .usb_desc = &desc, .init = usb_msd_initfn, .handle_packet = usb_generic_handle_packet, |