From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) by mx.groups.io with SMTP id smtpd.web11.16834.1679052901507144153 for ; Fri, 17 Mar 2023 04:35:02 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: proxmox.com, ip: 94.136.29.106, mailfrom: f.ebner@proxmox.com) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 15ED245104; Fri, 17 Mar 2023 12:34:59 +0100 (CET) Message-ID: Date: Fri, 17 Mar 2023 12:34:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [edk2-devel] [PATCH v2 2/4] OvmfPkg/PlatformInitLib: detect physical address space To: devel@edk2.groups.io, kraxel@redhat.com Cc: Jordan Justen , Pawel Polawski , Jiewen Yao , Oliver Steffen , Ard Biesheuvel , Thomas Lamprecht References: <20221004134728.55499-1-kraxel@redhat.com> <20221004134728.55499-3-kraxel@redhat.com> <5259991b-964c-4378-f206-9991053f7c7e@proxmox.com> <20230316143750.ymxeidxae3jhwtrj@sirius.home.kraxel.org> From: "Fiona Ebner" In-Reply-To: <20230316143750.ymxeidxae3jhwtrj@sirius.home.kraxel.org> Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Am 16.03.23 um 15:37 schrieb Gerd Hoffmann: > On Thu, Mar 16, 2023 at 02:58:07PM +0100, Fiona Ebner wrote: >> Hi, >> after upgrading to edk2-stable202211 recently, we got user reports[0] >> about QEMU virtual machines with '-cpu host' on AMD Ryzen hosts not >> booting correctly anymore. A workaround seems to be assigning more >> memory to the VM. > > Most likely this one: > https://bugzilla.tianocore.org/show_bug.cgi?id=4251 > > Either upgrade to 202302 or backport a107ad0f6236..015a001b03db > to fix that. > Thank you for the suggestion! Unfortunately, the behavior is the same with 202302 (and with current master, i.e. 410ca0ff94). The bug report talks about TCG, but this is with KVM. Is there anything like page tables or the MMIO window which simply requires more memory when PhysMemAddressWidth is larger? Please note that the issue here occurs with and without ecb778d0ac ("OvmfPkg/PlatformInitLib: dynamic mmio window size"), the first bad commit is one earlier. P.S. I would've tested 202302 already yesterday, but we base the edk2 package off Debian and building the 202302 release didn't work. The QEMU instance spawned by debian/edk2-vars-generator.py script would hang. I had to find and cherry-pick QEMU commit dab30fbef3 ("acpi: cpuhp: fix guest-visible maximum access size to the legacy reg block") first to make it work. Best Regards, Fiona