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.194532.1673957794962964918 for ; Tue, 17 Jan 2023 04:16:35 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cX+2qkFb; 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=1673957794; 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; bh=RziGGr7Rk+ioOEkfv8tZCfrw/nPzKJrxLIFI+UAIW5Y=; b=cX+2qkFbtk7OItOD2UALZVIAtl6KO2foJMyPlwM/7sjrbmBJQ+ZxSn5Qh3C88YVcHQ3CQW 6S3WKuqeBjlPqGetRTFJ2+iTV+BSw9RPCbS1c20lGImbTnZtglCzV5/W0Ijz1/jcgyeXwG i+rvQRB2KHXVKOL7dets5NFzTT0j7qo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-108-CI-z4ApaPheew3ePwMquUQ-1; Tue, 17 Jan 2023 07:16:32 -0500 X-MC-Unique: CI-z4ApaPheew3ePwMquUQ-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 90E1A380662C; Tue, 17 Jan 2023 12:16:31 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.124]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 40BF22026D4B; Tue, 17 Jan 2023 12:16:31 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E44631800097; Tue, 17 Jan 2023 13:16:29 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Oliver Steffen , =?UTF-8?q?L=C3=A1szl=C3=B3=20=C3=89rsek?= , Ard Biesheuvel , Pawel Polawski , Jordan Justen , Gerd Hoffmann Subject: [PATCH v4 0/5] OvmfPkg: check 64bit mmio window for resource conflicts Date: Tue, 17 Jan 2023 13:16:24 +0100 Message-Id: <20230117121629.2149112-1-kraxel@redhat.com> MIME-Version: 1.0 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="utf-8" Content-Transfer-Encoding: 8bit v4: - made mmio window move a bit more robust. - dropped patches for moving MMCONFIG, they'll come as separate patch series later. v3: - Add / fix comments, add notes to commit messages. - Make functions static. - Logging tweaks. - Fix windows compiler warnings. - Add patches (5,6,7) moving MMCONFIG to 0xe0000000, simplifying code and reducing differences between 'pc' and 'q35' along the way. Eventually we want split them into a separate series, but some of this was discussed in v2 review, so I just appended them here for now. v2: - split up PlatformScanOrAdd64BitE820Ram() into scan function with callbacks, store results in PlatformInfoHob struct. Gerd Hoffmann (5): OvmfPkg/PlatformInitLib: Add PlatformScanE820 and GetFirstNonAddressCB OvmfPkg/PlatformInitLib: Add PlatformGetLowMemoryCB OvmfPkg/PlatformInitLib: Add PlatformAddHobCB OvmfPkg/PlatformInitLib: Add PlatformReservationConflictCB OvmfPkg/PlatformInitLib: reorder PlatformQemuUc32BaseInitialization OvmfPkg/Include/Library/PlatformInitLib.h | 3 +- OvmfPkg/Library/PeilessStartupLib/Hob.c | 3 +- .../PeilessStartupLib/PeilessStartup.c | 7 +- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 356 ++++++++++-------- OvmfPkg/Library/PlatformInitLib/Platform.c | 7 +- OvmfPkg/PlatformPei/MemDetect.c | 3 +- 6 files changed, 214 insertions(+), 165 deletions(-) -- 2.39.0