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.web12.3244.1622062175841630487 for ; Wed, 26 May 2021 13:49:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L9f4cTrz; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622062174; 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=+sXomKsDEN/2CeJQZI/s+5EWZuJmjJq47Mlrjwe6lJc=; b=L9f4cTrzfTUH4eest+TF4aHbuZkO1H1D/uyEaRyWTcEYr7XGlHEgO/x88a+H7LNZ0/BXRr +jw7Yz2zI4KsaT96YkOAZPvnFQBqCSKzt4+KzlTJG3ByUxm9023a4DrRaBXkruR+nZjz1Q WyoSKb8c0ujF7ZkJ+zMW2VqMYzKqCAA= 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-38-BSv55bihNwaWKqflACJZvQ-1; Wed, 26 May 2021 16:49:32 -0400 X-MC-Unique: BSv55bihNwaWKqflACJZvQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BCFF91009E3F; Wed, 26 May 2021 20:49:30 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-61.ams2.redhat.com [10.36.114.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD04E61156; Wed, 26 May 2021 20:49:28 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Anthony Perard , Ard Biesheuvel , Jordan Justen , Julien Grall , Peter Grehan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Rebecca Cran Subject: [PATCH 33/43] OvmfPkg/PciHostBridgeLibScan: remove QEMU (fw_cfg) support Date: Wed, 26 May 2021 22:14:36 +0200 Message-Id: <20210526201446.12554-34-lersek@redhat.com> In-Reply-To: <20210526201446.12554-1-lersek@redhat.com> References: <20210526201446.12554-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 VGhlICJPdm1mUGtnL0xpYnJhcnkvUGNpSG9zdEJyaWRnZUxpYlNjYW4vUGNpSG9zdEJyaWRnZUxp YlNjYW4uaW5mIgppbnN0YW5jZSBpcyB1c2VkIGluIHRoZSBmb2xsb3dpbmcgcGxhdGZvcm1zIGlu IGVkazI6CgogIE92bWZQa2cvQmh5dmUvQmh5dmVYNjQuZHNjCiAgT3ZtZlBrZy9Pdm1mWGVuLmRz YwoKQm90aCBwbGF0Zm9ybXMgZGVmaW5lICJQY2RQY2lEaXNhYmxlQnVzRW51bWVyYXRpb24iIHdp dGggRml4ZWQtYXQtQnVpbGQKYWNjZXNzIG1ldGhvZCwgYW5kIFRSVUUgdmFsdWUuIFJlbW92ZSB0 aGUgUENEIGZyb20gdGhlClBjaUhvc3RCcmlkZ2VMaWJTY2FuIGluc3RhbmNlLCBhbmQgZXZlcnl0 aGluZyBlbHNlIHRoYXQgaXMgdXNlZnVsIG9ubHkKd2hlbiB0aGUgUENEIGlzIEZBTFNFLgoKSW4g cHJhY3RpY2UsIHRoaXMgcmVtb3ZlcyB0aGUgUGNpSG9zdEJyaWRnZ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