From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FD61C5B572 for ; Mon, 17 Aug 2026 15:02:28 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wvyqv-0001lM-Rh; Mon, 17 Aug 2026 11:02:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wvyqt-0001hI-0k for qemu-devel@nongnu.org; Mon, 17 Aug 2026 11:02:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wvyqo-0005ff-NS for qemu-devel@nongnu.org; Mon, 17 Aug 2026 11:02:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1786978926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OMmE6nfk+YFtcw2BBus6xHm0qac/SEITokoBvt5qRT0=; b=KFy0THpRPMympsokFQk0TnSvVnM5bd5iNmdDVDW9P/ttRgkn6smqctDIGABO7MoOGZfVRQ xNug6SqrJv7ILiWssFeR+F59R/vXE+hI49iJ2bJ6OYuuOGyJvkzzFb3G3jOIc0MJJJKpOi uQTAP/4QQEqqqxfc5LK8O34vY1KGoRQ= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-295-xLpC4nMhMq-HvGBK9tf0YA-1; Mon, 17 Aug 2026 11:02:05 -0400 X-MC-Unique: xLpC4nMhMq-HvGBK9tf0YA-1 X-Mimecast-MFC-AGG-ID: xLpC4nMhMq-HvGBK9tf0YA_1786978924 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-698b899b53cso2850435a12.3 for ; Mon, 17 Aug 2026 08:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1786978924; x=1787583724; darn=nongnu.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=OMmE6nfk+YFtcw2BBus6xHm0qac/SEITokoBvt5qRT0=; b=I7/p3yeXSCABZOkvU75n+KTBNbVDcJxiKcDDQ7eq/wXEUTkNKM/8lcjUWabGL2QgoY /Hxp+ZS+makqWW9GIooZFfTdUI0XaQlQ0kBKt2fN1IBoXsnM1vxGXijqNuRa8qSdiX3k FUoSP4e0vvAIhqtAaHjAL7KyyjBppeAe+OCIOfPu3JOXyLNM+g81Lc3NRJBpvf/5mvcQ ClcWZU41YUbtfa4rPJNCyqKF/qFV4VhN6glYvcvpbQH+3cxXT0KIcc4Sb8OtQ8JparIi +HGHKvr+1nFX8sloG/jdDWHoIgywmv3fLXwp9BSHOwo1/s7ISlVFM91dfzWTeLPZvcc1 Ad+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786978924; x=1787583724; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=OMmE6nfk+YFtcw2BBus6xHm0qac/SEITokoBvt5qRT0=; b=f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ByizJXAC6OFI= X-Received: by 2002:a05:6402:1588:b0:6a1:4458:7f2d with SMTP id 4fb4d7f45d1cf-6a38a8f9b87mr12358959a12.5.1786978924208; Mon, 17 Aug 2026 08:02:04 -0700 (PDT) X-Received: by 2002:a05:6402:1588:b0:6a1:4458:7f2d with SMTP id 4fb4d7f45d1cf-6a38a8f9b87mr12358904a12.5.1786978923504; Mon, 17 Aug 2026 08:02:03 -0700 (PDT) Received: from leonardi-redhat (host-95-247-118-130.retail.telecomitalia.it. [95.247.118.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-482a5a7c5dcsm4954627f8f.17.2026.08.17.08.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2026 08:02:02 -0700 (PDT) Date: Mon, 17 Aug 2026 17:01:59 +0200 From: Luigi Leonardi To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Michael S. Tsirkin" , Richard Henderson , Sergio Lopez , Gerd Hoffmann Subject: Re: [PATCH 0/3] hw/i386/microvm: add uefi-vars-sysbus support via platform bus Message-ID: References: <20260701-microvm_uefi_var-v1-0-0652cae6a152@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20260701-microvm_uefi_var-v1-0-0652cae6a152@redhat.com> Received-SPF: pass client-ip=170.10.129.124; envelope-from=leonardi@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.343, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, Jul 01, 2026 at 04:16:16PM +0200, Luigi Leonardi wrote: >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 >Cc: Michael S. Tsirkin >Cc: Richard Henderson >Cc: Sergio Lopez >Cc: Gerd Hoffmann > >Suggested-by: Gerd Hoffmann >Signed-off-by: Luigi Leonardi >--- >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 > > Gentle ping :) Thanks, Luigi