From: Luigi Leonardi <leonardi@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Sergio Lopez <slp@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>,
Luigi Leonardi <leonardi@redhat.com>
Subject: [PATCH 0/3] hw/i386/microvm: add uefi-vars-sysbus support via platform bus
Date: Wed, 01 Jul 2026 16:16:16 +0200 [thread overview]
Message-ID: <20260701-microvm_uefi_var-v1-0-0652cae6a152@redhat.com> (raw)
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>
next reply other threads:[~2026-07-01 14:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 14:16 Luigi Leonardi [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260701-microvm_uefi_var-v1-0-0652cae6a152@redhat.com \
--to=leonardi@redhat.com \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=slp@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.