mirror of https://gitee.com/openkylin/qemu.git
Add bootindex handling into usb storage device.
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
363f8cb9bc
commit
cf8ce30d03
|
@ -532,6 +532,7 @@ static int usb_msd_initfn(USBDevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
add_boot_device_path(s->conf.bootindex, &dev->qdev, "/disk@0,0");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -595,6 +596,7 @@ static USBDevice *usb_msd_init(const char *filename)
|
|||
static struct USBDeviceInfo msd_info = {
|
||||
.product_desc = "QEMU USB MSD",
|
||||
.qdev.name = "usb-storage",
|
||||
.qdev.fw_name = "storage",
|
||||
.qdev.size = sizeof(MSDState),
|
||||
.usb_desc = &desc,
|
||||
.init = usb_msd_initfn,
|
||||
|
|
Loading…
Reference in New Issue