From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web11.3407.1630403879476963268 for ; Tue, 31 Aug 2021 02:57:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gwoHVxCu; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630403878; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iA0fc7qo7jNznhK0ezMAJgsH9f0678MhuCJW0Wz4/AA=; b=gwoHVxCuSfbSDcFqUm+wJRLcxN30upw1DhQxhSIJnSFbcEEoRpZRAL4wfC4DSTsAazigxG zoh9y0bw9U5aZ0oUFgAeA2whv5VzrNVrmFJpsyaAt2yf8Gwe6qDzYwvISNRpUY+wpoeU37 in7Qp8Gl8tVVu4Jd6I+subcTcyH3rwU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-83-2VlrQQLEMVu6rehA9nyf7w-1; Tue, 31 Aug 2021 05:57:57 -0400 X-MC-Unique: 2VlrQQLEMVu6rehA9nyf7w-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 20AA5106F6EC; Tue, 31 Aug 2021 09:57:56 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D6257620DE; Tue, 31 Aug 2021 09:57:55 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C8CB11800996; Tue, 31 Aug 2021 11:57:14 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Anthony Perard , Gerd Hoffmann , Ard Biesheuvel , Jiewen Yao , Jordan Justen , Julien Grall , Stefan Berger Subject: [PATCH 11/17] OvmfPkg/Microvm: PlatformPei/MemDetect tweaks Date: Tue, 31 Aug 2021 11:57:08 +0200 Message-Id: <20210831095714.2834550-12-kraxel@redhat.com> In-Reply-To: <20210831095714.2834550-1-kraxel@redhat.com> References: <20210831095714.2834550-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Skip host bridge setup on microvm. Signed-off-by: Gerd Hoffmann --- OvmfPkg/PlatformPei/MemDetect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c index 2c2c4641ec8a..d736b85e0d90 100644 --- a/OvmfPkg/PlatformPei/MemDetect.c +++ b/OvmfPkg/PlatformPei/MemDetect.c @@ -135,6 +135,10 @@ QemuUc32BaseInitialization ( UINT32 LowerMemorySize; UINT32 Uc32Size; + if (mHostBridgeDevId == 0xffff /* microvm */) { + return; + } + if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) { // // On q35, the 32-bit area that we'll mark as UC, through variable MTRRs, -- 2.31.1