From nobody Fri May 17 02:41:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113772+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113772+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1705086971; cv=none; d=zohomail.com; s=zohoarc; b=gtlwVGkjGw4KTNG7JaiilSo7/SOyz49HfJrKeszysUu8poUUBhUSbbBzUUPNL95p0QswMgK+BjxBIkj9eo/c81Hwxirmxw860AIoHkUo21IQsD5wOowp1sGF+C/tx1x6UukMMgnLwbtSh49M1y2MrcegABlD3pGbAGYedETkEfQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705086971; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=88tWhRrga+3RSyt/y//mcUakqGYLPTxRaG2cb/vPY9M=; b=A9Q/5aBIchdBRifu/fAJFmLKKilxVUiyJjNmXWN75DwGixNS5fXlD+MVq8YxORO06lu5hUTJmSgLc1Z0eketjlZn9Obx7xkPIb6gvgqlLVUrfZ2HHUGJdfqBzLD0DdNtCOmlqr+0Ul/WQfvIBH7PuNRldHWH4O9yx/1G339cAtk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113772+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1705086971177230.6671366374593; Fri, 12 Jan 2024 11:16:11 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=afB4VN+pd7IlMoF0Y8x6e1jsPuY8TVwQKO+j5jvH+Sw=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1705086970; v=1; b=k7a6B3rsZh4Ywj7KLZEUu+XMb8ysTIj8CUXs+jnYH2rCSLeeuKDtskdE+D+T5tX0JdUeW/wH tOJQ7Xn0GaidmR5t5ZThzuMjYDzNd3osQjWkI+jplD/zcqLOSGM/HW8FsOOEtqo73DvyqNeGLMy yz0qE3tCKXRrbi21tSYSwmQI= X-Received: by 127.0.0.2 with SMTP id AWHHYY1788612xA42nvT4DSM; Fri, 12 Jan 2024 11:16:10 -0800 X-Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by mx.groups.io with SMTP id smtpd.web10.15591.1705084313250214215 for ; Fri, 12 Jan 2024 10:31:53 -0800 X-Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-598a5448ef5so1481988eaf.0 for ; Fri, 12 Jan 2024 10:31:53 -0800 (PST) X-Gm-Message-State: RhHlhZm2EshAI9djJLmUiNBZx1787277AA= X-Google-Smtp-Source: AGHT+IEf817M19aB2kaf75VFO/mmVC/vBQwBiA8Xq3q00RhVQtjfCwx+0DCQmZwzDnmo0L3tsJwbEQ== X-Received: by 2002:a05:6358:f1c:b0:175:643d:75ef with SMTP id b28-20020a0563580f1c00b00175643d75efmr1681961rwj.4.1705084312256; Fri, 12 Jan 2024 10:31:52 -0800 (PST) X-Received: from dev-hypervisor-01.hsd1.ca.comcast.net ([2601:645:8001:5750::6d3b]) by smtp.googlemail.com with ESMTPSA id w67-20020a626246000000b006d6b91c6eb6sm3699243pfb.13.2024.01.12.10.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 10:31:52 -0800 (PST) From: "Thomas Barrett" To: devel@edk2.groups.io Cc: Thomas Barrett , Anatol Belski , Ard Biesheuvel , Gerd Hoffmann , Jianyong Wu , Jiewen Yao , Laszlo Ersek , Rob Bradford Subject: [edk2-devel] [PATCH v3 1/3] OvmfPkg: Add CloudHv support to PlatformScanE820 utility function. Date: Fri, 12 Jan 2024 18:31:42 +0000 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tbarrett1200@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1705086972225100069 Content-Type: text/plain; charset="utf-8" From: Thomas Barrett The PlatformScanE820 utility function is not currently compatible with CloudHv since it relies on the prescence of the "etc/e820" QemuFwCfg file. Update the PlatformScanE820 to iterate through the PVH e820 entries when running on a CloudHv guest. Cc: Anatol Belski Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jianyong Wu Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Rob Bradford Signed-off-by: Thomas Barrett Acked-by: Gerd Hoffmann --- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 95 ++++++++++++++------- 1 file changed, 65 insertions(+), 30 deletions(-) diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c b/OvmfPkg/Library/= PlatformInitLib/MemDetect.c index 662e7e85bb..76a9dc9211 100644 --- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c +++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c @@ -248,6 +248,67 @@ PlatformReservationConflictCB ( PlatformInfoHob->PcdPciMmio64Base =3D NewBase; } =20 +/** + Returns PVH memmap + @param Entries Pointer to PVH memmap + @param Count Number of entries + @return EFI_STATUS +**/ +EFI_STATUS +GetPvhMemmapEntries ( + struct hvm_memmap_table_entry **Entries, + UINT32 *Count + ) +{ + UINT32 *PVHResetVectorData; + struct hvm_start_info *pvh_start_info; + + PVHResetVectorData =3D (VOID *)(UINTN)PcdGet32 (PcdXenPvhStartOfDayStruc= tPtr); + if (PVHResetVectorData =3D=3D 0) { + return EFI_NOT_FOUND; + } + + pvh_start_info =3D (struct hvm_start_info *)(UINTN)PVHResetVectorData[0]; + + *Entries =3D (struct hvm_memmap_table_entry *)(UINTN)pvh_start_info->mem= map_paddr; + *Count =3D pvh_start_info->memmap_entries; + + return EFI_SUCCESS; +} + +STATIC +EFI_STATUS +PlatformScanE820Pvh ( + IN E820_SCAN_CALLBACK Callback, + IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob + ) +{ + struct hvm_memmap_table_entry *Memmap; + UINT32 MemmapEntriesCount; + struct hvm_memmap_table_entry *Entry; + EFI_E820_ENTRY64 E820Entry; + EFI_STATUS Status; + UINT32 Loop; + + Status =3D GetPvhMemmapEntries (&Memmap, &MemmapEntriesCount); + if (EFI_ERROR (Status)) { + return Status; + } + + for (Loop =3D 0; Loop < MemmapEntriesCount; Loop++) { + Entry =3D Memmap + Loop; + + if (Entry->type =3D=3D XEN_HVM_MEMMAP_TYPE_RAM) { + E820Entry.BaseAddr =3D Entry->addr; + E820Entry.Length =3D Entry->size; + E820Entry.Type =3D Entry->type; + Callback (&E820Entry, PlatformInfoHob); + } + } + + return EFI_SUCCESS; +} + /** Iterate over the entries in QEMU's fw_cfg E820 RAM map, call the passed callback for each entry. @@ -279,6 +340,10 @@ PlatformScanE820 ( EFI_E820_ENTRY64 E820Entry; UINTN Processed; =20 + if (PlatformInfoHob->HostBridgeDevId =3D=3D CLOUDHV_DEVICE_ID) { + return PlatformScanE820Pvh (Callback, PlatformInfoHob); + } + Status =3D QemuFwCfgFindFile ("etc/e820", &FwCfgItem, &FwCfgSize); if (EFI_ERROR (Status)) { return Status; @@ -297,36 +362,6 @@ PlatformScanE820 ( return EFI_SUCCESS; } =20 -/** - Returns PVH memmap - - @param Entries Pointer to PVH memmap - @param Count Number of entries - - @return EFI_STATUS -**/ -EFI_STATUS -GetPvhMemmapEntries ( - struct hvm_memmap_table_entry **Entries, - UINT32 *Count - ) -{ - UINT32 *PVHResetVectorData; - struct hvm_start_info *pvh_start_info; - - PVHResetVectorData =3D (VOID *)(UINTN)PcdGet32 (PcdXenPvhStartOfDayStruc= tPtr); - if (PVHResetVectorData =3D=3D 0) { - return EFI_NOT_FOUND; - } - - pvh_start_info =3D (struct hvm_start_info *)(UINTN)PVHResetVectorData[0]; - - *Entries =3D (struct hvm_memmap_table_entry *)(UINTN)pvh_start_info->mem= map_paddr; - *Count =3D pvh_start_info->memmap_entries; - - return EFI_SUCCESS; -} - STATIC UINT64 GetHighestSystemMemoryAddressFromPvhMemmap ( --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113772): https://edk2.groups.io/g/devel/message/113772 Mute This Topic: https://groups.io/mt/103689731/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 17 02:41:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113773+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113773+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1705086970; cv=none; d=zohomail.com; s=zohoarc; b=TMrCyFVs7i4viI0WOjpV5vpHfDQzdtWN1IHkJAMjAj+b00DNF7lQ8v9dNZ69tlWbBJeiu7RbE3w4O0ckZzYhMP2BlEpeXlVQSqhjE+8hu0h+75SHellyJhr2SgTaDkrFhWZLid2uhgZFlDymiV9VTzVhJPK4YzwKy6I0bceu+bs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705086970; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=BF6OPm3Odps4kvzcI2JxItpCYbVonSCvA6rmXM+Xsts=; b=bEBGNhoXK6M8WAkTChKseA9yHrU1NAd15NhfwBIhN8iPddo6UT3bsijCgowETlKA1iVNS+2nySgqoM+5ER1CySC/9OES/Jr5fhMm3FzEtWo5Gw6V86xlVDPkOQiEDlOsN4AcXScXM2BRgB6MiRsQ+rL4TXrvH4THJorxh2/YvM8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113773+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1705086970232443.94957801254725; Fri, 12 Jan 2024 11:16:10 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=UjIbTmeJMcgK+z4lT0/XaUNaD5Dvrq4kk6jhtiuMdJ8=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1705086969; v=1; b=iaT6yjP9yB8k1BuXZZ56np6yZHZUorqHpcOSFnMOWmw7BEOzVDRYJrSHGUoCdUAiionsCNBz mDVniFa2VKeCzuXf3zoi7xmEEh8xtxXvSXK5wPu6XvPz6ONU8plz+UnlyeVgrxdTi+sV7Fdjn7M 3mqzg7NGPxNT6VVpxZaNaFXo= X-Received: by 127.0.0.2 with SMTP id vhXtYY1788612xghitjKGuIb; Fri, 12 Jan 2024 11:16:09 -0800 X-Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web10.15592.1705084314489003761 for ; Fri, 12 Jan 2024 10:31:54 -0800 X-Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6da4a923b1bso3838063b3a.2 for ; Fri, 12 Jan 2024 10:31:54 -0800 (PST) X-Gm-Message-State: XBblcP6Y6G4FclCMSEsLXK2Kx1787277AA= X-Google-Smtp-Source: AGHT+IEpFbf4KOT0IDPh+L7HTk8f0sXkUbj7uqqonvRTlP3cGTMSdv1DwFxbEj9mWEUY9AqBuMLPHg== X-Received: by 2002:a05:6a20:4f1e:b0:199:b189:eb93 with SMTP id gi30-20020a056a204f1e00b00199b189eb93mr1018089pzb.100.1705084313279; Fri, 12 Jan 2024 10:31:53 -0800 (PST) X-Received: from dev-hypervisor-01.hsd1.ca.comcast.net ([2601:645:8001:5750::6d3b]) by smtp.googlemail.com with ESMTPSA id w67-20020a626246000000b006d6b91c6eb6sm3699243pfb.13.2024.01.12.10.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 10:31:53 -0800 (PST) From: "Thomas Barrett" To: devel@edk2.groups.io Cc: Thomas Barrett , Anatol Belski , Ard Biesheuvel , Gerd Hoffmann , Jianyong Wu , Jiewen Yao , Laszlo Ersek , Rob Bradford Subject: [edk2-devel] [PATCH v3 2/3] OvmfPkg: Update PlatformAddressWidthInitialization for CloudHv Date: Fri, 12 Jan 2024 18:31:43 +0000 Message-Id: <2fa1fa4d809f0f295981d1f0b4e5ebebf0dcb91f.1705084003.git.tbarrett1200@gmail.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tbarrett1200@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1705086972209100068 Content-Type: text/plain; charset="utf-8" From: Thomas Barrett In addition to initializing the PhysMemAddressWidth and FirstNonAddress fields in PlatformInfoHob, the PlatformAddressWidthInitialization function is responsible for initializing the PcdPciMmio64Base and PcdPciMmio64Size fields. Currently, for CloudHv guests, the PcdPciMmio64Base is placed immediately after either the 4G boundary or the last RAM region, whichever is greater. We do not change this behavior. Previously, when booting CloudHv guests with greater than 1TiB of high memory, the PlatformAddressWidthInitialization function incorrect calculates the amount of RAM using the overflowed 24-bit CMOS register. Now, we update the PlatformAddressWidthInitialization behavior on CloudHv to scan the E820 entries to detect the amount of RAM. This allows CloudHv guests to boot with greater than 1TiB of RAM Cc: Anatol Belski Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jianyong Wu Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Rob Bradford Signed-off-by: Thomas Barrett Acked-by: Gerd Hoffmann --- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OvmfPkg/Library/PlatformInitLib/MemDetect.c b/OvmfPkg/Library/= PlatformInitLib/MemDetect.c index 76a9dc9211..f042517bb6 100644 --- a/OvmfPkg/Library/PlatformInitLib/MemDetect.c +++ b/OvmfPkg/Library/PlatformInitLib/MemDetect.c @@ -873,6 +873,18 @@ PlatformAddressWidthInitialization ( =20 if (PlatformInfoHob->HostBridgeDevId =3D=3D 0xffff /* microvm */) { PlatformAddressWidthFromCpuid (PlatformInfoHob, FALSE); + return; + } else if (PlatformInfoHob->HostBridgeDevId =3D=3D CLOUDHV_DEVICE_ID) { + PlatformInfoHob->FirstNonAddress =3D BASE_4GB; + Status =3D PlatformScanE820 (PlatformGetFirs= tNonAddressCB, PlatformInfoHob); + if (EFI_ERROR (Status)) { + PlatformInfoHob->FirstNonAddress =3D BASE_4GB + PlatformGetSystemMem= orySizeAbove4gb (); + } + + PlatformInfoHob->PcdPciMmio64Base =3D PlatformInfoHob->FirstNonAddress; + PlatformAddressWidthFromCpuid (PlatformInfoHob, FALSE); + PlatformInfoHob->PcdPciMmio64Size =3D PlatformInfoHob->FirstNonAddress= - PlatformInfoHob->PcdPciMmio64Base; + return; } =20 --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113773): https://edk2.groups.io/g/devel/message/113773 Mute This Topic: https://groups.io/mt/103689732/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 17 02:41:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113774+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113774+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1705086971; cv=none; d=zohomail.com; s=zohoarc; b=Z3Yvy/4/or6b/GhkT5BisgIjH/YyIfN9RYHWvIZZXkwnNj8Htg4Jh1DNofHlyxQQu+8jLME/VbO/APtN7SeHR0EsocibvdSezMha2Xqt69bicEcC/HS+SLtk4CXNbNud0mY6OIgWcx7scEgnn3gUfnAKyUuGIcdGtTvBx6L50kQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705086971; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=AlzOF92v3LxviypUCW8WgR9m0MElRQ5DzVcB/s0QBSQ=; b=GzqAK3yt3nTbmIeXEPhHrECnroinZIvbDCTOMZRmyw9X8E8wupPCHiJPrpVmtAG8caemyU+IcK0KSFEUzxSADCj4Y+hpBMPTQxRK4Vid/vn1LHScTy3VjK+6JCMbj6WLYZSlw0lvA2qG0JmuEp55h5uCMGfZe1YN5Xwgcw/sUmc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113774+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 170508697166466.30382282501625; Fri, 12 Jan 2024 11:16:11 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=S+JXh24p8Wopub8mC80gn8bakVN9K6dPfjOIxFH2eNg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1705086971; v=1; b=Hv1+YcYBdUPqKJvsWgGvDSBfSRO3zbZ22cADe59XHwwV1/MIatZP7R81Y6oJD7QC9QGDBPwH 4hCqu9BmZpZ3aHuFRxVwK2OkM10KYPBe2qXIS3NmZEo7gxifAQ6hTJzt1TboPDNT13lrjLsxOF+ 5U5BtU+NW/yTxILaMV9t07RE= X-Received: by 127.0.0.2 with SMTP id y9lDYY1788612xL7WxIVktCy; Fri, 12 Jan 2024 11:16:11 -0800 X-Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx.groups.io with SMTP id smtpd.web11.15296.1705084315247795474 for ; Fri, 12 Jan 2024 10:31:55 -0800 X-Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6daf9d5f111so5226716b3a.0 for ; Fri, 12 Jan 2024 10:31:55 -0800 (PST) X-Gm-Message-State: XP64nVaVmNruyrXIislhYSEhx1787277AA= X-Google-Smtp-Source: AGHT+IElBb8s9erjKrkXsxLR7WBQW8mgkdj6HIQsGtmPVjZWn7c4dUBM9xalU9Ny8xdbn3kJ0RRwNg== X-Received: by 2002:a05:6a00:2a09:b0:6d9:ac49:4e36 with SMTP id ce9-20020a056a002a0900b006d9ac494e36mr1310728pfb.68.1705084314357; Fri, 12 Jan 2024 10:31:54 -0800 (PST) X-Received: from dev-hypervisor-01.hsd1.ca.comcast.net ([2601:645:8001:5750::6d3b]) by smtp.googlemail.com with ESMTPSA id w67-20020a626246000000b006d6b91c6eb6sm3699243pfb.13.2024.01.12.10.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 10:31:54 -0800 (PST) From: "Thomas Barrett" To: devel@edk2.groups.io Cc: Thomas Barrett , Anatol Belski , Ard Biesheuvel , Gerd Hoffmann , Jianyong Wu , Jiewen Yao , Laszlo Ersek , Rob Bradford Subject: [edk2-devel] [PATCH v3 3/3] OvmfPkg: CloudHv: Enable PcdUse1GPageTable Date: Fri, 12 Jan 2024 18:31:44 +0000 Message-Id: <69f5ec65e20ea6efbec49b8a7fa2479b9d71961a.1705084003.git.tbarrett1200@gmail.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tbarrett1200@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1705086972203100067 Content-Type: text/plain; charset="utf-8" From: Thomas Barrett Without enabling PcdUse1GPageTable, CloudHv guests are limited to a 40-bit address space, even if the hardware supports more. This limits the amount of RAM to 1TiB of CloudHv guests. Cc: Anatol Belski Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jianyong Wu Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Rob Bradford Signed-off-by: Thomas Barrett Acked-by: Gerd Hoffmann --- OvmfPkg/CloudHv/CloudHvX64.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/CloudHv/CloudHvX64.dsc b/OvmfPkg/CloudHv/CloudHvX64.dsc index af594959a9..b522fa1059 100644 --- a/OvmfPkg/CloudHv/CloudHvX64.dsc +++ b/OvmfPkg/CloudHv/CloudHvX64.dsc @@ -566,6 +566,8 @@ # Point to the MdeModulePkg/Application/UiApp/UiApp.inf gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c= , 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0= x31 } =20 + gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE + ##########################################################################= ###### # # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Pla= tform --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113774): https://edk2.groups.io/g/devel/message/113774 Mute This Topic: https://groups.io/mt/103689733/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-