qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device.
@ 2011-01-02 15:04 Gleb Natapov
  2011-01-02 15:04 ` [Qemu-devel] [PATCH 2/2] Add boot index documentation Gleb Natapov
  2011-01-02 15:07 ` [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device Gleb Natapov
  0 siblings, 2 replies; 5+ messages in thread
From: Gleb Natapov @ 2011-01-02 15:04 UTC (permalink / raw)
  To: qemu-devel

---
 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 0a95d8d..46642a8 100644
--- a/hw/usb-msd.c
+++ b/hw/usb-msd.c
@@ -560,6 +560,7 @@ static int usb_msd_initfn(USBDevice *dev)
         }
     }
 
+    add_boot_device_path(s->conf.bootindex, &dev->qdev, "/disk@0,0");
     return 0;
 }
 
@@ -624,6 +625,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),
     .init           = usb_msd_initfn,
     .handle_packet  = usb_generic_handle_packet,
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device.
@ 2011-01-02 15:07 Gleb Natapov
  2011-01-02 15:07 ` [Qemu-devel] [PATCH 2/2] Add boot index documentation Gleb Natapov
  0 siblings, 1 reply; 5+ messages in thread
From: Gleb Natapov @ 2011-01-02 15:07 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 0a95d8d..46642a8 100644
--- a/hw/usb-msd.c
+++ b/hw/usb-msd.c
@@ -560,6 +560,7 @@ static int usb_msd_initfn(USBDevice *dev)
         }
     }
 
+    add_boot_device_path(s->conf.bootindex, &dev->qdev, "/disk@0,0");
     return 0;
 }
 
@@ -624,6 +625,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),
     .init           = usb_msd_initfn,
     .handle_packet  = usb_generic_handle_packet,
-- 
1.7.2.3

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

end of thread, other threads:[~2011-01-28 13:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-02 15:04 [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device Gleb Natapov
2011-01-02 15:04 ` [Qemu-devel] [PATCH 2/2] Add boot index documentation Gleb Natapov
2011-01-02 15:07 ` [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device Gleb Natapov
  -- strict thread matches above, loose matches on Subject: below --
2011-01-02 15:07 Gleb Natapov
2011-01-02 15:07 ` [Qemu-devel] [PATCH 2/2] Add boot index documentation Gleb Natapov
2011-01-28 13:17   ` 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).