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 3/3] hw/i386/microvm: add uefi-vars-sysbus support
Date: Wed, 01 Jul 2026 16:16:19 +0200 [thread overview]
Message-ID: <20260701-microvm_uefi_var-v1-3-0652cae6a152@redhat.com> (raw)
In-Reply-To: <20260701-microvm_uefi_var-v1-0-0652cae6a152@redhat.com>
Allow the uefi-vars-sysbus device on microvm.
This is to support persistent UEFI variables on this architecture.
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
---
hw/i386/microvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
index d4836b5e12..44a5006b5a 100644
--- a/hw/i386/microvm.c
+++ b/hw/i386/microvm.c
@@ -55,6 +55,7 @@
#include "elf.h"
#include "kvm/kvm_i386.h"
#include "hw/xen/start_info.h"
+#include "hw/uefi/var-service-api.h"
#define MICROVM_QBOOT_FILENAME "qboot.rom"
#define MICROVM_BIOS_FILENAME "bios-microvm.bin"
@@ -751,6 +752,7 @@ static void microvm_class_init(ObjectClass *oc, const void *data)
"Set off to disable adding virtio-mmio devices to the kernel cmdline");
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
+ machine_class_allow_dynamic_sysbus_dev(mc, TYPE_UEFI_VARS_SYSBUS);
compat_props_add(mc->compat_props, microvm_properties,
G_N_ELEMENTS(microvm_properties));
--
2.54.0
prev parent reply other threads:[~2026-07-01 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Luigi Leonardi [this message]
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-3-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.