[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 4/7] hw/core: implement a guest-loader to support static h
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 4/7] hw/core: implement a guest-loader to support static hypervisor guests |
Date: |
Wed, 3 Mar 2021 19:37:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 3/3/21 6:36 PM, Alex Bennée wrote:
> Hypervisors, especially type-1 ones, need the firmware/bootcode to put
> their initial guest somewhere in memory and pass the information to it
> via platform data. The guest-loader is modelled after the generic
> loader for exactly this sort of purpose:
>
> $QEMU $ARGS -kernel ~/xen.git/xen/xen \
> -append "dom0_mem=1G,max:1G loglvl=all guest_loglvl=all" \
> -device
> guest-loader,addr=0x42000000,kernel=Image,bootargs="root=/dev/sda2 ro
> console=hvc0 earlyprintk=xen" \
> -device guest-loader,addr=0x47000000,initrd=rootfs.cpio
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Message-Id: <20201105175153.30489-5-alex.bennee@linaro.org>
> Message-Id: <20210211171945.18313-5-alex.bennee@linaro.org>
> ---
> hw/core/guest-loader.h | 34 ++++++++++
> hw/core/guest-loader.c | 145 +++++++++++++++++++++++++++++++++++++++++
> MAINTAINERS | 5 ++
> hw/core/meson.build | 2 +
> 4 files changed, 186 insertions(+)
> create mode 100644 hw/core/guest-loader.h
> create mode 100644 hw/core/guest-loader.c
Missing documentation, otherwise:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
- [PATCH v3 0/7] Xen guest-loader support, pre-PR, Alex Bennée, 2021/03/03
- [PATCH v3 2/7] hw/riscv: migrate fdt field to generic MachineState, Alex Bennée, 2021/03/03
- [PATCH v3 4/7] hw/core: implement a guest-loader to support static hypervisor guests, Alex Bennée, 2021/03/03
- [PATCH v3 1/7] hw/board: promote fdt from ARM VirtMachineState to MachineState, Alex Bennée, 2021/03/03
- [PATCH v3 3/7] device_tree: add qemu_fdt_setprop_string_array helper, Alex Bennée, 2021/03/03
- [PATCH v3 5/7] docs: move generic-loader documentation into the main manual, Alex Bennée, 2021/03/03
- [PATCH v3 6/7] docs: add some documentation for the guest-loader, Alex Bennée, 2021/03/03
- [PATCH v3 7/7] tests/avocado: add boot_xen tests, Alex Bennée, 2021/03/03