All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] hw/i386/microvm: add uefi-vars-sysbus support via platform bus
@ 2026-07-01 14:16 Luigi Leonardi
  2026-07-01 14:16 ` [PATCH 1/3] hw/core/platform-bus: fix crash when num_irqs is zero Luigi Leonardi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Luigi Leonardi @ 2026-07-01 14:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Michael S. Tsirkin, Richard Henderson,
	Sergio Lopez, Gerd Hoffmann, Luigi Leonardi

This series adds support for the uefi-vars-sysbus device on the microvm
machine type, enabling persistent UEFI variable storage.

The uefi-vars-sysbus device is a sysbus device that is attached to the
platform bus, which microvm does not currently support. To address this,
the series adds a platform bus to microvm, following the same
pattern used by the ARM virt machine.

The platform bus is mapped at 0xfec20000 with a 1 MB window, placed
after the IOAPICs. It is created without IRQ lines since the
uefi-vars-sysbus device only requires MMIO.

Patch 1 fixes a crash in the platform bus core when num_irqs is zero,
        which is needed to support an MMIO-only platform bus.
Patch 2 adds the platform bus to microvm with MMIO mapping and FDT
        integration.
Patch 3 allows the uefi-vars-sysbus device to be instantiated on
        microvm.

Corresponding edk2 changes[1]

[1]https://github.com/tianocore/edk2/pull/12751

To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Sergio Lopez <slp@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>

Suggested-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
---
Luigi Leonardi (3):
      hw/core/platform-bus: fix crash when num_irqs is zero
      hw/i386/microvm: add platform bus support
      hw/i386/microvm: add uefi-vars-sysbus support

 hw/core/platform-bus.c    |  4 ++++
 hw/i386/Kconfig           |  1 +
 hw/i386/microvm-dt.c      |  9 +++++++++
 hw/i386/microvm.c         | 38 ++++++++++++++++++++++++++++++++++++++
 include/hw/i386/microvm.h |  4 ++++
 5 files changed, 56 insertions(+)
---
base-commit: f38d6ae70f100fc8d3f095a842d2f1ca29262218
change-id: 20260701-microvm_uefi_var-8a434ce7f8b9

Best regards,
-- 
Luigi Leonardi <leonardi@redhat.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-17 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 14:16 [PATCH 0/3] hw/i386/microvm: add uefi-vars-sysbus support via platform bus Luigi Leonardi
2026-07-01 14:16 ` [PATCH 1/3] hw/core/platform-bus: fix crash when num_irqs is zero Luigi Leonardi
2026-07-01 14:16 ` [PATCH 2/3] hw/i386/microvm: add platform bus support Luigi Leonardi
2026-07-01 14:16 ` [PATCH 3/3] hw/i386/microvm: add uefi-vars-sysbus support Luigi Leonardi
2026-08-17 15:01 ` [PATCH 0/3] hw/i386/microvm: add uefi-vars-sysbus support via platform bus Luigi Leonardi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.