From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZPaI-00046P-Aj for qemu-devel@nongnu.org; Sun, 02 Jan 2011 10:11:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZPWw-0007j1-LM for qemu-devel@nongnu.org; Sun, 02 Jan 2011 10:08:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZPWw-0007et-20 for qemu-devel@nongnu.org; Sun, 02 Jan 2011 10:07:34 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p02F7Xqa022547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 2 Jan 2011 10:07:33 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p02F7WlS004636 for ; Sun, 2 Jan 2011 10:07:33 -0500 From: Gleb Natapov Date: Sun, 2 Jan 2011 17:07:30 +0200 Message-Id: <1293980851-3743-1-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Gleb Natapov --- 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