mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
Merge remote-tracking branch 'kraxel/migration.2' into staging
This commit is contained in:
commit
e374560232
9 changed files with 52 additions and 0 deletions
12
hw/usb-msd.c
12
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue