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.3299.1622062513433635244 for ; Wed, 26 May 2021 13:55:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XRWdhyKZ; 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=1622062512; 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=q7gUmrWShQ5uV2Y5rfs3DkNGkxxIO3Yg8Jy6e1uSY1Y=; b=XRWdhyKZn1e4HR4lFLXIo8yFUUBsphKjMZuem/MjmFo1ImD/uMGTzou/p+zG9hKo3LxR6v UvuMaPC1RnRi93ppud7QFfKH5DneQvT7BR4SN2K99ctuG0u7t22pjMLJECSGmD060BWpTx ZIdZFEr24vza0PZuRhWmVn46x9eI9H4= 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-340-Lxl3MDfRP7acAV6TM4SOKg-1; Wed, 26 May 2021 16:55:08 -0400 X-MC-Unique: Lxl3MDfRP7acAV6TM4SOKg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D9A3880ED9B; Wed, 26 May 2021 20:55:07 +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 C4C285D767; Wed, 26 May 2021 20:55:06 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jordan Justen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 38/43] OvmfPkg/SmbiosPlatformDxe: locate SMBIOS protocol in InstallAllStructures() Date: Wed, 26 May 2021 22:14:41 +0200 Message-Id: <20210526201446.12554-39-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.15 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 TG9jYXRlIHRoZSBTTUJJT1MgcHJvdG9jb2wgaW50ZXJuYWxseSB0byB0aGUgSW5zdGFsbEFsbFN0 cnVjdHVyZXMoKQpmdW5jdGlvbi4gVGhpcyBoYXMgbm8gcGVyZm9ybWFuY2UgaW1wYWN0IChJbnN0 YWxsQWxsU3RydWN0dXJlcygpIGlzIG9ubHkKY2FsbGVkIG9uY2UpLCBidXQgbW92aW5nIHRoZSBj b2RlIGZyb20gdGhlIGVudHJ5IHBvaW50IGZ1bmN0aW9uIG1ha2VzIHRoZQpsYXR0ZXIgc21hbGxl ci4gQW5kIHRoYXQgd2lsbCBiZSB1c2VmdWwgd2hlbiB3ZSBzcGxpdCB0aGUgZW50cnkgcG9pbnQK ZnVuY3Rpb24gdG8gdHdvIHZlcnNpb25zLgoKQ2M6IEFyZCBCaWVzaGV1dmVsIDxhcmRiK3RpYW5v Y29yZUBrZXJuZWwub3JnPgpDYzogSm9yZGFuIEp1c3RlbiA8am9yZGFuLmwuanVzdGVuQGludGVs LmNvbT4KQ2M6IFBoaWxpcHBlIE1hdGhpZXUtRGF1ZMOpIDxwaGlsbWRAcmVkaGF0LmNvbT4KUmVm O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sDQogICBJTiBVSU5UOCAgICAgICAgICAgICAgICAgICAgICpUYWJsZUFkZHJlc3MN CiAgICkNCiB7DQorICBFRklfU01CSU9TX1BST1RPQ09MICAgICAgICpTbWJpb3M7DQogICBFRklf U1RBVFVTICAgICAgICAgICAgICAgIFN0YXR1czsNCiAgIFNNQklPU19TVFJVQ1RVUkVfUE9JTlRF UiAgU21iaW9zVGFibGU7DQogICBFRklfU01CSU9TX0hBTkRMRSAgICAgICAgIFNtYmlvc0hhbmRs ZTsNCiAgIEJPT0xFQU4gICAgICAgICAgICAgICAgICAgTmVlZFNtYmlvc1R5cGUwOw0KIA0KKyAg Ly8NCisgIC8vIEZpbmQgdGhlIFNNQklPUyBwcm90b2NvbA0KKyAgLy8NCisgIFN0YXR1cyA9IGdC Uy0+TG9jYXRlUHJvdG9jb2wgKA0KKyAgICAgICAgICAgICAgICAgICZnRWZpU21iaW9zUHJvdG9j b2xHdWlkLA0KKyAgICAgICAgICAgICAgICAgIE5VTEwsDQorICAgICAgICAgICAgICAgICAgKFZP SUQqKikmU21iaW9zDQorICAgICAgICAgICAgICAgICAgKTsNCisgIGlmIChFRklfRVJST1IgKFN0 YXR1cykpIHsNCisgICAgcmV0dXJuIFN0YXR1czsNCisgIH0NCisNCiAgIFNtYmlvc1RhYmxlLlJh dyA9IFRhYmxlQWRkcmVzczsNCiAgIGlmIChTbWJpb3NUYWJsZS5SYXcgPT0gTlVMTCkgew0KICAg ICByZXR1cm4gRUZJX0lOVkFMSURfUEFSQU1FVEVSOw0KICAgfQ0KIA0KICAgTmVlZFNtYmlvc1R5 cGUwID0gVFJVRTsNCkBAIC0xNzMsNDEgKzE4NCwyOCBAQCBFRklBUEkKIFNtYmlvc1RhYmxlUHVi bGlzaEVudHJ5ICgNCiAgIElOIEVGSV9IQU5ETEUgICAgICAgICAgIEltYWdlSGFuZGxlLA0KICAg SU4gRUZJX1NZU1RFTV9UQUJMRSAgICAgKlN5c3RlbVRhYmxlDQogICApDQogew0KICAgRUZJX1NU QVRVUyAgICAgICAgICAgICAgICBTdGF0dXM7DQotICBFRklfU01CSU9TX1BST1RPQ09MICAgICAg ICpTbWJpb3M7DQogICBTTUJJT1NfVEFCTEVfRU5UUllfUE9JTlQgICpFbnRyeVBvaW50U3RydWN0 dXJlOw0KICAgVUlOVDggICAgICAgICAgICAgICAgICAgICAqU21iaW9zVGFibGVzOw0KIA0KLSAg Ly8NCi0gIC8vIEZpbmQgdGhlIFNNQklPUyBwcm90b2NvbA0KLSAgLy8NCi0gIFN0YXR1cyA9IGdC Uy0+TG9jYXRlUHJvdG9jb2wgKA0KLSAgICAgICAgICAgICAgICAgICZnRWZpU21iaW9zUHJvdG9j b2xHdWlkLA0KLSAgICAgICAgICAgICAgICAgIE5VTEwsDQotICAgICAgICAgICAgICAgICAgKFZP SUQqKikmU21iaW9zDQotICAgICAgICAgICAgICAgICAgKTsNCi0gIGlmIChFRklfRVJST1IgKFN0 YXR1cykpIHsNCi0gICAgcmV0dXJuIFN0YXR1czsNCi0gIH0NCi0NCiAgIFN0YXR1cyA9IEVGSV9O T1RfRk9VTkQ7DQogICAvLw0KICAgLy8gQWRkIFhlbiBvciBRRU1VIFNNQklPUyBkYXRhIGlmIGZv dW5kDQogICAvLw0KICAgRW50cnlQb2ludFN0cnVjdHVyZSA9IEdldFhlblNtYmlvc1RhYmxlcyAo KTsNCiAgIGlmIChFbnRyeVBvaW50U3RydWN0dXJlICE9IE5VTEwpIHsNCiAgICAgU21iaW9zVGFi bGVzID0gKFVJTlQ4KikoVUlOVE4pRW50cnlQb2ludFN0cnVjdHVyZS0+VGFibGVBZGRyZXNzOw0K ICAgfSBlbHNlIHsNCiAgICAgU21iaW9zVGFibGVzID0gR2V0UWVtdVNtYmlvc1RhYmxlcyAoKTsN CiAgIH0NCiANCiAgIGlmIChTbWJpb3NUYWJsZXMgIT0gTlVMTCkgew0KLSAgICBTdGF0dXMgPSBJ bnN0YWxsQWxsU3RydWN0dXJlcyAoU21iaW9zLCBTbWJpb3N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