From patchwork Sun Jan 2 15:07:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 77190 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D2B43B70AF for ; Mon, 3 Jan 2011 02:12:35 +1100 (EST) Received: from localhost ([127.0.0.1]:37366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZPbk-0006FM-Bj for incoming@patchwork.ozlabs.org; Sun, 02 Jan 2011 10:12:32 -0500 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 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id D64A418D3E9; Sun, 2 Jan 2011 17:07:31 +0200 (IST) From: Gleb Natapov To: qemu-devel@nongnu.org Date: Sun, 2 Jan 2011 17:07:30 +0200 Message-Id: <1293980851-3743-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 1/2] Add bootindex handling into usb storage device. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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,