From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkwpn-00061I-JT for qemu-devel@nongnu.org; Tue, 08 Sep 2009 05:17:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkwpi-0005y1-Nn for qemu-devel@nongnu.org; Tue, 08 Sep 2009 05:17:54 -0400 Received: from [199.232.76.173] (port=60413 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkwpi-0005xZ-5g for qemu-devel@nongnu.org; Tue, 08 Sep 2009 05:17:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49869) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mkwph-0000hi-Lc for qemu-devel@nongnu.org; Tue, 08 Sep 2009 05:17:49 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n889HmUH007808 for ; Tue, 8 Sep 2009 05:17:48 -0400 From: Gerd Hoffmann Date: Tue, 8 Sep 2009 11:17:41 +0200 Message-Id: <1252401463-3249-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] port over extboot from kvm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann $subject says pretty much everything. extboot.[cS] are a straight copy from the kvm tree. The windup in vl,c and hw/pc.c is done slightly different, I've added a function to lookup the boot drive instead of adding a new global variable. Booting from scsi and virtio works, using the boot=on flag. With the usb+scsi patches in anthonys patch queue applied booting from usb works too. Syntax is this: -drive if=none,id=pendrive,file=/path/to/image,boot=on -usb -device usb-storage,drive=pendrive Booting a rawhide install from a virtual usb stick doesn't actually work though, looks like it stresses qemus usb emulation too much.