[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/4] optionrom: add new PVH option rom
From: |
Stefano Garzarella |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/4] optionrom: add new PVH option rom |
Date: |
Wed, 16 Jan 2019 12:02:04 +0100 |
User-agent: |
NeoMutt/20180716 |
Hi Liam,
On Wed, Jan 16, 2019 at 10:16:04AM +0000, Liam Merwick wrote:
> Hi Stefano,
>
> Code LGTM, just a few minor comments below
>
> On 15/01/2019 10:00, Stefano Garzarella wrote:
> > The new pvh.bin option rom can be used with SeaBIOS to boot
> > uncompressed kernel using the x86/HVM direct boot ABI.
> >
> > pvh.S contains the entry point of the option rom. It runs
> > in real mode, loads the e820 table querying the BIOS, and
> > then it switches to 32bit protect mode and jump to the
>
> "protect" -> "protected"
> "jump" -> "jumps"
>
Thanks!
> > diff --git a/pc-bios/optionrom/pvh_main.c b/pc-bios/optionrom/pvh_main.c
> > +
> > +asm (".code32"); /* this code will be executed in protect mode */
>
>
> "protect" -> "protected"
>
>
Thanks!
> > +
> > +struct hvm_start_info start_info;
>
> Can this be static?
>
Yes.
> > +struct hvm_modlist_entry ramdisk_mod;
>
> Is this used?
>
Thanks, I forgot to remove it. I'm using it for initrd, but of course is
not used in this patch.
> > +uint8_t cmdline_buffer[CMDLINE_BUFSIZE];
>
> Can this be static?
>
Yes.
I'll include these changes in v3.
Thanks,
Stefano
--
Stefano Garzarella
Red Hat
[Qemu-devel] [PATCH v2 3/4] optionrom: add new PVH option rom, Stefano Garzarella, 2019/01/15
[Qemu-devel] [PATCH v2 1/4] linuxboot_dma: remove duplicate definitions of FW_CFG, Stefano Garzarella, 2019/01/15
[Qemu-devel] [PATCH v2 2/4] linuxboot_dma: move common functions in a new header, Stefano Garzarella, 2019/01/15
Re: [Qemu-devel] [PATCH v2 0/4] pvh: add new PVH option rom, Stefan Hajnoczi, 2019/01/15
Re: [Qemu-devel] [PATCH v2 0/4] pvh: add new PVH option rom, Liam Merwick, 2019/01/16