提交 cf8ce30d 编写于 作者: G Gleb Natapov 提交者: Anthony Liguori

Add bootindex handling into usb storage device.

Signed-off-by: NGleb Natapov <gleb@redhat.com>
Signed-off-by: NGleb Natapov <gleb@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 363f8cb9
...@@ -532,6 +532,7 @@ static int usb_msd_initfn(USBDevice *dev) ...@@ -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; return 0;
} }
...@@ -595,6 +596,7 @@ static USBDevice *usb_msd_init(const char *filename) ...@@ -595,6 +596,7 @@ static USBDevice *usb_msd_init(const char *filename)
static struct USBDeviceInfo msd_info = { static struct USBDeviceInfo msd_info = {
.product_desc = "QEMU USB MSD", .product_desc = "QEMU USB MSD",
.qdev.name = "usb-storage", .qdev.name = "usb-storage",
.qdev.fw_name = "storage",
.qdev.size = sizeof(MSDState), .qdev.size = sizeof(MSDState),
.usb_desc = &desc, .usb_desc = &desc,
.init = usb_msd_initfn, .init = usb_msd_initfn,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册