From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id F1C4C74003D for ; Mon, 11 Dec 2023 22:37:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Ehj0u7Mzefol9HqaSrBah8vSWBLlSkXDogu746iU3BM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1702334254; v=1; b=skV5WwpuppaDlE87vhjbTaswDnkI3Sw/pw1qnwIRqCF2/z2eyuzTLujRpKYLKr/5dNTk9j0x +WaLsOSV/5snI+0pGgrKklmlYshiWaxSw5f/qlRZct+sTF1kQa+K7j2YssvACQKUYdPkAOh1ndL 6aVNOILOfdSzqL9HPss+xNuI= X-Received: by 127.0.0.2 with SMTP id 2kT2YY7687511xgKshZ20jHi; Mon, 11 Dec 2023 14:37:34 -0800 X-Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) by mx.groups.io with SMTP id smtpd.web11.5118.1702334253835354907 for ; Mon, 11 Dec 2023 14:37:33 -0800 X-Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3b9f111c114so1932778b6e.1 for ; Mon, 11 Dec 2023 14:37:33 -0800 (PST) X-Gm-Message-State: Y4PKsOPqVyFPimHCW4DnrCxTx7686176AA= X-Google-Smtp-Source: AGHT+IFCBfYRlEwzi2B3B5UsOAxDP6RhGSE7RhGerNhn+jhR7ihE7F6XJgRQd9w89tHAv4bO+Y3LNw== X-Received: by 2002:a05:6808:1b0e:b0:3b9:e48c:dca3 with SMTP id bx14-20020a0568081b0e00b003b9e48cdca3mr6007340oib.51.1702334252685; Mon, 11 Dec 2023 14:37:32 -0800 (PST) X-Received: from aturtleortwo-benjamindomain.. ([2607:f2c0:e9b1:f59a:bf3c:db4:6459:ea26]) by smtp.gmail.com with ESMTPSA id d5-20020ac851c5000000b0042543fb2537sm3545736qtn.26.2023.12.11.14.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:37:32 -0800 (PST) From: "Benjamin Doron" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Sean Rhodes , James Lu , Gua Guo Subject: [edk2-devel] [PATCH v1 1/4] UefiPayloadPkg/SblParseLib: Build SMM feature GUID HOBs from bootloader Date: Mon, 11 Dec 2023 17:37:08 -0500 Message-ID: <20231211223722.1223413-1-benjamin.doron00@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,benjamin.doron00@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: base64 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=skV5Wwpu; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io RnJvbTogQmVuamFtaW4gRG9yb24gPGJlbmphbWluLmRvcm9uQDllbGVtZW50cy5jb20+CgpVZWZp UGF5bG9hZCBkb2VzIG5vdCBpbnN0YWxsIGFsbCBTQkwgSE9CcywgRURLMi1yZWxldmFudCBvbmVz IG11c3QgYmUKaW5zdGFsbGVkIGluZGl2aWR1YWxseS4gVGhpcyB3YXMgb21pdHRlZCBmcm9tIHRo ZSBTTU0gZmVhdHVyZSBwdXNoZXMuCgpDYzogR3VvIERvbmcgPGd1by5kb25nQGludGVsLmNvbT4K Q2M6IFJheSBOaSA8cmF5Lm5pQGludGVsLmNvbT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gICAgICAgICAgICAgICAgICpCbE52VmFyaWFibGVJ bmZvOw0KKyAgTlZfVkFSSUFCTEVfSU5GTyAgICAgICAgICAgICAgICAgICAgKlBsZE52VmFyaWFi bGVJbmZvOw0KKyAgUExEX1MzX0NPTU1VTklDQVRJT04gICAgICAgICAgICAgICAgKkJsUzNDb21t dW5pY2F0aW9uOw0KKyAgUExEX1MzX0NPTU1VTklDQVRJT04gICAgICAgICAgICAgICAgKlBsZFMz Q29tbXVuaWNhdGlvbjsNCiANCiAgIFN0YXR1cyAgICAgICAgICAgPSBSRVRVUk5fTk9UX0ZPVU5E Ow0KICAgQmxSb290QnJpZGdlc0hvYiA9IChVTklWRVJTQUxfUEFZTE9BRF9QQ0lfUk9PVF9CUklE R0VTICopR2V0R3VpZEhvYkRhdGFGcm9tU2JsICgNCkBAIC0yODcsNSArMzAzLDY2IEBAIFBhcnNl TWlzY0luZm8gKAogICAgIH0NCiAgIH0NCiANCisgIC8vIFBlcmhhcHMgcGF5bG9hZCBkb2VzIG5v dCBwZXJmb3JtIFNNTSwgZG8gbm90IG92ZXJyaWRlIFN0YXR1cw0KKyAgQmxTbW1SZWdpc3RlcnMg PSBHZXRHdWlkSG9iRGF0YUZyb21TYmwgKCZnU21tUmVnaXN0ZXJJbmZvR3VpZCk7DQorICBpZiAo QmxTbW1SZWdpc3RlcnMgIT0gTlVMTCkgew0KKyAgICBQbGRTbW1SZWdpc3RlcnMgPSBCdWlsZEd1 aWREYXRhSG9iICgNCisgICAgICAgICAgICAgICAgICAgICAgICAmZ1NtbVJlZ2lzdGVySW5mb0d1 aWQsDQorICAgICAgICAgICAgICAgICAgICAgICAgQmxTbW1SZWdpc3RlcnMsDQorICAgICAgICAg ICAgICAgICAgICAgICAgc2l6ZW9mIChQTERfU01NX1JFR0lTVEVSUykgKyAoQmxTbW1SZWdpc3Rl cnMtPkNvdW50ICogc2l6ZW9mIChQTERfR0VORVJJQ19SRUdJU1RFUikpDQorICAgICAgICAgICAg ICAgICAgICAgICAgKTsNCisgICAgaWYgKFBsZFNtbVJlZ2lzdGVycyAhPSBOVUxMKSB7DQorICAg ICAgREVCVUcgKChERUJVR19JTkZPLCAiQ3JlYXRlIFNNTSByZWdpc3RlciBpbmZvIGd1aWQgaG9i XG4iKSk7DQorICAgIH0NCisgIH0NCisNCisgIEJsU21yYW1Ib2IgPSBHZXRHdWlkSG9iRGF0YUZy b21TYmwgKCZnRWZpU21tU21yYW1NZW1vcnlHdWlkKTsNCisgIGlmIChCbFNtcmFtSG9iICE9IE5V TEwpIHsNCisgICAgUGxkU21yYW1Ib2IgPSBCdWlsZEd1aWREYXRhSG9iICgNCisgICAgICAgICAg ICAgICAgICAgICZnRWZpU21tU21yYW1NZW1vcnlHdWlkLA0KKyAgICAgICAgICAgICAgICAgICAg QmxTbXJhbUhvYiwNCisgICAgICAgICAgICAgICAgICAgIHNpemVvZiAoRUZJX1NNUkFNX0hPQl9E RVNDUklQVE9SX0JMT0NLKSArICgoQmxTbXJhbUhvYi0+bnVtYmVyX29mX3NtbV9yZWdpb25zIC0g MSkgKiBzaXplb2YgKEVGSV9TTVJBTV9ERVNDUklQVE9SKSkNCisgICAgICAgICAgICAgICAgICAg ICk7DQorICAgIGlmIChQbGRTbXJhbUhvYiAhPSBOVUxMKSB7DQorICAgICAgREVCVUcgKChERUJV R19JTkZPLCAiQ3JlYXRlIFNNTSBTTVJBTSBtZW1vcnkgaW5mbyBndWlkIGhvYlxuIikpOw0KKyAg ICB9DQorICB9DQorDQorICBCbFNwaUZsYXNoSW5mbyA9IEdldEd1aWRIb2JEYXRhRnJvbVNibCAo JmdTcGlGbGFzaEluZm9HdWlkKTsNCisgIGlmIChCbFNwaUZsYXNoSW5mbyAhPSBOVUxMKSB7DQor ICAgIFBsZFNwaUZsYXNoSW5mbyA9IEJ1aWxkR3VpZERhdGFIb2IgKA0KKyAgICAgICAgICAgICAg ICAgICAgICAgICZnU3BpRmxhc2hJbmZvR3VpZCwNCisgICAgICAgICAgICAgICAgICAgICAgICBC bFNwaUZsYXNoSW5mbywNCisgICAgICAgICAgICAgICAgICAgICAgICBzaXplb2YgKFNQSV9GTEFT SF9JTkZPKQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICk7DQorICAgIGlmIChQbGRTcGlGbGFz aEluZm8gIT0gTlVMTCkgew0KKyAgICAgIERFQlVHICgoREVCVUdfSU5GTywgIkNyZWF0ZSBTUEkg Zmxhc2ggaW5mbyBndWlkIGhvYlxuIikpOw0KKyAgICB9DQorICB9DQorDQorICBCbE52VmFyaWFi bGVJbmZvID0gR2V0R3VpZEhvYkRhdGFGcm9tU2JsICgmZ052VmFyaWFibGVJbmZvR3VpZCk7DQor ICBpZiAoQmxOdlZhcmlhYmxlSW5mbyAhPSBOVUxMKSB7DQorICAgIFBsZE52VmFyaWFibGVJbmZv ID0gQnVpbGRHdWlkRGF0YUhvYiAoDQorICAgICAgICAgICAgICAgICAgICAgICAgICAmZ052VmFy aWFibGVJbmZvR3VpZCwNCisgICAgICAgICAgICAgICAgICAgICAgICAgIEJsTnZWYXJpYWJsZUlu Zm8sDQorICAgICAgICAgICAgICAgICAgICAgICAgICBzaXplb2YgKE5WX1ZBUklBQkxFX0lORk8p DQorICAgICAgICAgICAgICAgICAgICAgICAgICApOw0KKyAgICBpZiAoUGxkTnZWYXJpYWJsZUlu Zm8gIT0gTlVMTCkgew0KKyAgICAgIERFQlVHICgoREVCVUdfSU5GTywgIkNyZWF0ZSBOViB2YXJp YWJsZSBpbmZvIGd1aWQgaG9iXG4iKSk7DQorICAgIH0NCisgIH0NCisNCisgIEJsUzNDb21tdW5p Y2F0aW9uID0gR2V0R3VpZEhvYkRhdGFGcm9tU2JsICgmZ1MzQ29tbXVuaWNhdGlvbkd1aWQpOw0K KyAgaWYgKEJsUzNDb21tdW5pY2F0aW9uICE9IE5VTEwpIHsNCisgICAgUGxkUzNDb21tdW5pY2F0 aW9uID0gQnVpbGRHdWlkRGF0YUhvYiAoDQorICAgICAgICAgICAgICAgICAgICAgICAgIC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hdGlvbkd1aWQNCiANCiBbUGNkXQ0KICAgZ1VlZmlQYXlsb2FkUGtn VG9rZW5TcGFjZUd1aWQuUGNkQm9vdGxvYWRlclBhcmFtZXRlcg0KLS0gCjIuNDMuMAoK -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112332): https://edk2.groups.io/g/devel/message/112332 Mute This Topic: https://groups.io/mt/103119536/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-