From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:39024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gld6z-0002Ek-GW for qemu-devel@nongnu.org; Mon, 21 Jan 2019 12:11:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gld1A-0004eY-Ja for qemu-devel@nongnu.org; Mon, 21 Jan 2019 12:05:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57434) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gld1A-0004eG-DK for qemu-devel@nongnu.org; Mon, 21 Jan 2019 12:05:48 -0500 Date: Mon, 21 Jan 2019 15:05:41 -0200 From: Eduardo Habkost Message-ID: <20190121170541.GN4136@habkost.net> References: <20190118120143.21631-1-sgarzare@redhat.com> <20190118120143.21631-5-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190118120143.21631-5-sgarzare@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 4/5] hw/i386/pc: use PVH option rom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Garzarella Cc: qemu-devel@nongnu.org, Paolo Bonzini , George Kennedy , Marcel Apfelbaum , Stefan Hajnoczi , Maran Wilson , Liam Merwick , Boris Ostrovsky , Richard Henderson , Eric Blake , "Michael S. Tsirkin" On Fri, Jan 18, 2019 at 01:01:42PM +0100, Stefano Garzarella wrote: > Use pvh.bin option rom when we are booting an uncompressed > kernel using the x86/HVM direct boot ABI. > > Signed-off-by: Stefano Garzarella > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Liam Merwick > --- > hw/i386/pc.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 9ed5063de8..2833b130ba 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c > @@ -1252,6 +1252,10 @@ static void load_linux(PCMachineState *pcms, > initrd_size); > } > > + option_rom[nb_option_roms].bootindex = 0; > + option_rom[nb_option_roms].name = "pvh.bin"; > + nb_option_roms++; > + We still need to address Michael's comment from v2 about machine-type compatibility: https://www.mail-archive.com/qemu-devel@nongnu.org/msg587489.html A question I've sent is quoted below: | On Tue, Jan 15, 2019 at 01:57:22PM -0500, Michael S. Tsirkin wrote: | > OK but this is guest visible so needs to be guarded by the | > new machine type. | | Aren't option ROMs treated like other firmware? i.e.: guest | visible, but copied during live migration and not considered part | of guest ABI. -- Eduardo