From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.19400.1684754345136282910 for ; Mon, 22 May 2023 04:19:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CFiqAXtJ; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684754344; 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=UVPajXBaC9IqIq8uT6CfaC8ty/soupLXyhqn2Cx2XkQ=; b=CFiqAXtJZMlyjNtZdMEOrrYfVVL0W+zrPT1HAIwv8DDsoq/JNlubHpZ2+/B0JbWS0CXiJh BlsQRL2dltqDh37qB+HAR3Meocj2afbyj+Db2uLjakT2BrUrI+JRFcmv3NACdmT7JGPp26 sA2yZvDZ+KSkZtNZkK6BNh5WzQjersI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-98-Ci54sc4SNpqNyvLGhz1A3Q-1; Mon, 22 May 2023 07:19:01 -0400 X-MC-Unique: Ci54sc4SNpqNyvLGhz1A3Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 93711185A78B; Mon, 22 May 2023 11:19:00 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.139]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6501A200B673; Mon, 22 May 2023 11:19:00 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 2AFE01800606; Mon, 22 May 2023 13:18:59 +0200 (CEST) Date: Mon, 22 May 2023 13:18:59 +0200 From: "Gerd Hoffmann" To: Ard Biesheuvel Cc: devel@edk2.groups.io, Jordan Justen , Oliver Steffen , Pawel Polawski , Ard Biesheuvel , Jiewen Yao Subject: Re: [PATCH 1/3] OvmfPkg/PlatformInitLib: check PcdUse1GPageTable Message-ID: References: <20230517102449.1334621-1-kraxel@redhat.com> <20230517102449.1334621-2-kraxel@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 22, 2023 at 12:37:51PM +0200, Ard Biesheuvel wrote: > On Wed, 17 May 2023 at 12:24, Gerd Hoffmann wrote: > > > > If PcdUse1GPageTable is not enabled restrict the physical address space > > used to 1TB, to limit the amount of memory needed for identity mapping > > page tables. > > > > The same already happens in case the processor has no support for > > gigabyte pages. > > > > Apologies for the noob question, but does this mean EDK2 maps the > entire address space 1:1, not just the region that as any DRAM in it? I just saw memory usage and boot time go up. Didn't check whenever that was just the 64-bit mmio area (which recent ovmf scales up with the available address space) or all address space. take care, Gerd