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.129.124]) by mx.groups.io with SMTP id smtpd.web09.4323.1654159344714541909 for ; Thu, 02 Jun 2022 01:42:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZWV5E28N; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654159343; 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=4KRYUNmtEJ56h4Q+VegAj/Yhg8hXF+jqPg6U+zIJ4JM=; b=ZWV5E28NcbvIEhmDBRtvGRMR7k5JGZm0Tz0i/zINrpQckjdyn6+mw3OWOgfOKPVYFlkx9/ cT/c6i/exvLC8oe8o1gZs2ZO0gMWG4YFm36BDRczfiIVKJcn1jM3dtjanqq1fhtDVFpS/7 2UaLF+9ASqZ8uwNkvdWyg3cW6QvKNTY= 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-29-e0lWYvq0OoCtikFRzGTEnw-1; Thu, 02 Jun 2022 04:42:18 -0400 X-MC-Unique: e0lWYvq0OoCtikFRzGTEnw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1515F1C051A8; Thu, 2 Jun 2022 08:42:18 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9E5A40E80E1; Thu, 2 Jun 2022 08:42:17 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 64CDD18000B2; Thu, 2 Jun 2022 10:42:16 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Hao A Wu , Pawel Polawski , Ard Biesheuvel , mateusz.albecki@intel.com, Abner Chang , Ray Ni , Leif Lindholm , Jiewen Yao , Oliver Steffen , Liming Gao , Gerd Hoffmann , Jian J Wang , Jordan Justen Subject: [PATCH v7 0/6] OvmfPkg/Microvm/pcie: add pcie support Date: Thu, 2 Jun 2022 10:42:10 +0200 Message-Id: <20220602084216.159028-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 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). v7: - allow non-existing io address space only in case there are no io reservations (Mateusz Albecki) v6: - codestyle fix (Abner Chang). 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 | 6 +++ .../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, 107 insertions(+), 45 deletions(-) -- 2.36.1