qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv2 1/2] Add bootindex handling into usb storage device.
@ 2011-01-30 10:29 Gleb Natapov
  2011-01-30 10:29 ` [Qemu-devel] [PATCHv2 2/2] Add boot index documentation Gleb Natapov
  2011-01-31  8:20 ` [Qemu-devel] [PATCHv2 1/2] Add bootindex handling into usb storage device Markus Armbruster
  0 siblings, 2 replies; 3+ messages in thread
From: Gleb Natapov @ 2011-01-30 10:29 UTC (permalink / raw)
  To: qemu-devel


Signed-off-by: Gleb Natapov <gleb@redhat.com>
---
 hw/usb-msd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/usb-msd.c b/hw/usb-msd.c
index 11722c7..d9df4f2 100644
--- a/hw/usb-msd.c
+++ b/hw/usb-msd.c
@@ -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;
 }
 
@@ -596,6 +597,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,
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-31  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 10:29 [Qemu-devel] [PATCHv2 1/2] Add bootindex handling into usb storage device Gleb Natapov
2011-01-30 10:29 ` [Qemu-devel] [PATCHv2 2/2] Add boot index documentation Gleb Natapov
2011-01-31  8:20 ` [Qemu-devel] [PATCHv2 1/2] Add bootindex handling into usb storage device Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).