qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1 0/4] add guest-loader (for direct Xen boot)


From: Alex Bennée
Subject: [PATCH v1 0/4] add guest-loader (for direct Xen boot)
Date: Wed, 21 Oct 2020 18:08:38 +0100

Hi,

This is a refinement of the Xen loader I posted a few weeks ago.
Rather than complicate the generic loader with extra options I went
for the more expedient approach of adding a completely new device
called the guest-loader. As it didn't need to deal with any of the
subtleties of the generic-loader it also worked out somewhat simpler.

Instead of allowing the user to hand hack FDT blobs we simply add
syntactic sugar that understands the difference between a kernel and
initrd. This could be expanded in future if we want although at the
moment I don't know what else you would add.

The new syntax is now simpler:

  -device guest-loader,addr=0x42000000,kernel=Image,bootargs="console=hvc0 
earlyprintk=xen" \
  -device guest-loader,addr=0x47000000,initrd=rootfs.cpio

So any objections? It would be nice to get in this cycle but we only
have a week left until soft-freeze.

Alex Bennée (4):
  hw/board: promote fdt from ARM VirtMachineState to MachineState
  hw/riscv: migrate fdt field to generic MachineState
  device_tree: add qemu_fdt_setprop_string_array helper
  hw/core: implement a guest-loader to support static hypervisor guests

 hw/core/guest-loader.h       |  34 ++++
 include/hw/arm/virt.h        |   1 -
 include/hw/boards.h          |   1 +
 include/hw/riscv/virt.h      |   1 -
 include/sysemu/device_tree.h |  17 ++
 hw/arm/virt.c                | 322 ++++++++++++++++++-----------------
 hw/core/guest-loader.c       | 140 +++++++++++++++
 hw/riscv/virt.c              |  18 +-
 softmmu/device_tree.c        |  26 +++
 hw/core/meson.build          |   2 +
 10 files changed, 398 insertions(+), 164 deletions(-)
 create mode 100644 hw/core/guest-loader.h
 create mode 100644 hw/core/guest-loader.c

-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]