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.web11.5876.1650613044184540290 for ; Fri, 22 Apr 2022 00:37:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WGNRmvP4; 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=1650613042; 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=8PnrN9jKeAAswjrHO7zgwFyeHZ6VVQN74OPq/2KYf5c=; b=WGNRmvP4DUt5c++GkYZvBovQjUD5dslqj2nWId/gY0YxIgf6yABXg76gLOkhVaKj1u9mpS JcLGfDpZh1VnLW8mkNr4D9gVF+euKJf+DNOJSEXRdB23eGrhqrNvumBjwztNGE6d1gHdut UwP3Rfjzw0krhngC81nYYUJ+hZTR3mc= 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-240-9ijiJOb4MqWbdYMZg_FY7A-1; Fri, 22 Apr 2022 03:37:17 -0400 X-MC-Unique: 9ijiJOb4MqWbdYMZg_FY7A-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D5458811E78; Fri, 22 Apr 2022 07:37:16 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 883E8428F0B; Fri, 22 Apr 2022 07:37:15 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id A0E5018003A7; Fri, 22 Apr 2022 09:37:13 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Ard Biesheuvel , Liming Gao , Hao A Wu , Ray Ni , Oliver Steffen , Leif Lindholm , Jordan Justen , Jiewen Yao , Gerd Hoffmann , Abner Chang , Jian J Wang Subject: [PATCH v5 0/6] OvmfPkg/Microvm/pcie: add pcie support Date: Fri, 22 Apr 2022 09:37:07 +0200 Message-Id: <20220422073713.2087781-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Needs two little tweaks in PCI code because microvm supports mmio only. Other than that just wire up the existing code (the PCIe host adapter used by microvm is the same (virtual) hardware used by the arm/aarch64 virtual machines). v5: - codestyle (uncrustify) fix. v4: - update PciHostBridge check (Abner Chang). v3: - rebase to latest master, adapt to PlatformInitLib. - rework PhysMemAddressWidth handling for microvm. v2: - rebase to latest master - pick up review tags Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3777 Gerd Hoffmann (6): MdeModulePkg/PciHostBridge: io range is not mandatory OvmfPkg/FdtPciHostBridgeLib: io range is not mandatory OvmfPkg/Platform: unfix PcdPciExpressBaseAddress OvmfPkg/Microvm/pcie: no vbeshim please OvmfPkg/Microvm/pcie: mPhysMemAddressWidth tweak OvmfPkg/Microvm/pcie: add pcie support OvmfPkg/Microvm/MicrovmX64.dsc | 40 ++++++++++------- .../PlatformInitLib/PlatformInitLib.inf | 4 +- OvmfPkg/PlatformPei/PlatformPei.inf | 2 +- .../Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 3 ++ .../FdtPciHostBridgeLib/FdtPciHostBridgeLib.c | 45 ++++++++++--------- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 45 ++++++++++++++++++- OvmfPkg/Library/PlatformInitLib/Platform.c | 4 +- OvmfPkg/PlatformPei/Platform.c | 2 +- OvmfPkg/QemuVideoDxe/VbeShim.c | 2 + OvmfPkg/Microvm/README | 2 +- 10 files changed, 104 insertions(+), 45 deletions(-) -- 2.35.1