From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eu-smtp-delivery-143.mimecast.com (eu-smtp-delivery-143.mimecast.com [146.101.78.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 593EF1A1E04 for ; Fri, 19 Aug 2016 03:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+s3w00duBvY/KwMF65T2oOvN3ZDnI7VaLW/kBY1kMEA=; b=eBILcQN2sGN54/2BU/1M/NqqhbiWI0CxU8vsRYHkl/QHhDMwf3/70LF6iNSUZSd3sSmlTUz4lHaHAnu7pLXNgFkSs1yVSrQcVkaukO3osXSHy2oEy3D4dhDHXGfmrFLSVd5vhfvfcZK7GyE933MSWetkjCt6ayEAWHeToZkqcG0= Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp0216.outbound.protection.outlook.com [213.199.154.216]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-69-wt3Nz3pOPiWcYVeqnGbSgA-1; Fri, 19 Aug 2016 11:00:26 +0100 Received: from e102648.cambridge.arm.com (217.140.96.140) by DB5PR08MB1189.eurprd08.prod.outlook.com (10.166.174.146) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Fri, 19 Aug 2016 10:00:23 +0000 Date: Fri, 19 Aug 2016 11:00:32 +0100 From: Achin Gupta To: Message-ID: <20160819100000.GA31031@e102648.cambridge.arm.com> MIME-Version: 1.0 User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: HE1PR10CA0020.EURPRD10.PROD.OUTLOOK.COM (10.167.243.158) To DB5PR08MB1189.eurprd08.prod.outlook.com (10.166.174.146) X-MS-Office365-Filtering-Correlation-Id: 46588ed7-63ce-49b5-028e-08d3c817a33c X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB1189; 2:CxwMoi4W5b0BBwaFY3KZrvgJI/vF2lUphuYhyh3IrEFpJT3r5022tiNW7H3CHv5m9PMYOQEVb9LSwofRJ3oDHLCzYA+YCO6Cic7d/NhdXxuz8DTDyJiw57784FomIpSGimIINJU6/cvIynqjwHetoLG9tM0MTOMkoVHgfs3dRBvGvPk+crR2kKCEh6sl97fb; 3:XT+O5EBRbBJyDFFs3wkGmBFhAZoWbpIXm9BRGlbM1KNI2EyEz71cDnCZCxP4URFLHDwNf/waFBg4Ojx1yhZTY2ybMlUAf6vzY5seXFitYYy6GtGWljZmQ0RU8XNx6O5H; 25:pPxeE0GWcJLrRRvo1/H+lUm85JH4NdqC9lNHtZuUjAPOSq9hpk1Mx/bSGjqzeqMJiHw2V7Z8b0qGZ4yI6LSPTYViQw7+b/+vE0CdPeJEwCDje0vDCuOf5at1XXI2GLWV3NVqU8VOlXiY/03Z9mWdt2nkbG7ryT9QLC9RvJmfUxLsWhIPGtVFRd/jQcmv6zZdF5nMhrJRGlGMAUbsbMn2F5nUu1/CqeSyFSTmk7GvQLLYZRy6ZD4gAWp9Km51hfVXnppCBvzqKVm9kSX03c919M41qc0aUFwWDi68QCBkuS6mggLzBIeCS6+0O8DbLLSFoydtJxxA6WEnhTqwl8f6PG78+C2VWr8xjoedJt/+Ca0JB81wKhOCsrEVWRbOXICg/0i43OP4apbWf2pkqBJfkjd4HYVqr2Lrubax0q8Yl7Q= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR08MB1189; X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB1189; 31:EXTw2kd13XQBdUKUK8MbPw/SZ2aFXNh6UnKYsalQeTFssKwCsHDIzVSvSzrbZQP1rSDCUyIk0JL5hK1H8uYx84sb3DD4yaktse2G4DRKi0TPJgevAhLf6fWx4nt3t6HepSn08iQGU7kF4nhO2Wc13572Dg3l7QBIRJOclzjD3T60hOx3PJV28jLMezz3zDooWxq5Y+GRwA2rKWrVEsx//Ahiw0AXvBt62JXMei/k6NA=; 20:WKG0b6NU8oFX8ZKy7GY2RJJSFrfwh1NiI0+OSv3mxQC7np+/13i4P3Ts6c8PHdxpTKHeReP7r92MUuPVGvqZNuoNUSCjZjDvIaKs0rjPbYy0x1GO9rEod5paRWOn5mB95SYYPUmmAr/Cz7vPSNt6hoF9m6i68ng19oM8VaMzJ6YuUU435ql5LIhMoXUbUhDED1zbwz5x/bOw779OdbSgBBcQif7x38Uo3nFKQyXbJXYKOuvZzLVs8eZek+mkfEqN; 4:3Od0b/F4wo2eX/8ttjBdC835YPT5oNgaGnLB/KycmHMyA4cmrz9IG3/V3+UPaMNAjit6S+UYexy+ky0lEpaM1tavsRrxLvjuLJoaaVgBbsvncLKTkLRrMXjyZ1NIz2KfX5heQ5YnqjGSCC9hSrfPSvfvc4HNBSDUZIUXgSVldpUw0mRO3hnRsdt77qouiG2c0h7dq+knke2qbB13eLFQlWguYQ2UN30eUaPysiR0sFLUftWCQH0iOFtTLGI83r16jyihgICmxeiLbxf0+VBgGfMJvrZvtVLY+htMvc1DbZz81grcdVDRZchQmqDsAjos0EghUFcsLPhduowp8IGRrQMZXNLUnroxGJGHfJR+LFCyjUJqnQY8a+iZFbo3N0UP+3YCFgvdKR7Za6Eeaoa+Tg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DB5PR08MB1189; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB1189; X-Forefront-PRVS: 0039C6E5C5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(288314003)(40434004)(189002)(199003)(42186005)(47776003)(77096005)(7736002)(5890100001)(86362001)(106356001)(110136002)(66066001)(189998001)(229853001)(107886002)(50466002)(2351001)(68736007)(23676002)(1076002)(2906002)(4001350100001)(97736004)(3480700004)(33656002)(586003)(101416001)(54356999)(81166006)(81156014)(3846002)(305945005)(7846002)(8676002)(8746002)(450100001)(6116002)(83506001)(92566002)(50986999)(105586002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB1189; H:e102648.cambridge.arm.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjVQUjA4TUIxMTg5OzIzOlFkekJEa0xBUzlHWjVJTmxYLytlS0YwbnY4?= =?utf-8?B?TU9ERUlsR01EUFE2UU13UlZPZ0hGcnBtYWs3SFRyVHExZk9qYlcyZU52U0NB?= =?utf-8?B?U3JqWTc4ZTZWTVQ3VTJVVXo3alNPbUJMQkRkcnYwWHhoRnVJVnQrcERYM0RW?= =?utf-8?B?dm93SXFzSjBGNHp5QkpPalJnczQ2anpTcGZQY2E2cWk4UXZpYXBYaE1hTkty?= =?utf-8?B?ODVocjVnVGdxS2tpeGFXUEprTjZoMERGcmFBL1h3b3E2NnA0dWQ0QnpUREtj?= =?utf-8?B?MmNYSXdTcjFrWWp3ZFREZVlWVkR6L0pCaGdaS3NSWW9sOHpNVk1tSG01RE5t?= =?utf-8?B?cDBmWkVrL0N1dWdrNXdTNFQvMjJLVTFsL0xFL0hHaDlpd2RFdjd3QUVQNU5N?= =?utf-8?B?VHBqM2RoWDhkTklBc2RDcFZNUGRzUlJTNTVhUEU0dGMrbzFxWFJtWDd0WmVy?= =?utf-8?B?SzdhbFo4NFFya0JXSVRKNTZWeXpjTE13eW5Tbk5iNzZLRnhmU2xVaC9jbUg3?= =?utf-8?B?YkhtT3VleUZmb2RHQUFoREc4UXNsaDE2U1dFVStFUWFrV29hQlhsVFY1SnJR?= =?utf-8?B?dzM1TU9iMy9lOWFaQUdQKyt0M1pNdFZ5b25pcUlJclpvN09yai9F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01mQlN6aEJSekxBWGxRT3Ba?= =?utf-8?B?QXRVRG03ZGVMVHMxbmcwYWNlR2dUQ3c9PQ==?= X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB1189; 6:D9tY9OFoQMwEsE8JxZ24S9t5O1CGVLMpmLCwUVy08T2K1tqwvLdassw9gyh8lPZ3koeG13iDlLql7qBsS5pFpIuhx4owqGKAEbX5+jzwsBi4ctxZFe6ye1xTdao/RhLPMb29A9b2/WVlVtmpiBYdf6gqwWxAPxWZuVCHKgxiOW9CZexJ3MEMNiUo+NqaTrGg98Z09E36KURUGJ26sJ2O4qfG7OxVQ4PWL3kEvdaU7EA+HqBcy4aszCMJC+g+uz0yjOG8jOMpRxJP8PdO4aR4B0/FhLTpxlsEds2jJZ/I7ET60M4DFNBhJLBl37fEXZ7EPn0CCDpMfNWT4mFk7gVDjA==; 5:g8KoHG0VhW/JnivzzSXoY5bZsiOE69EueoOeBC+LzxCR1+kELE7kbUTnmEgkZeQRyo0hq6maekNb1iy3piTTCnc+naJkesgqndu7mSRrXTZ3uAZqQmO6evmb5cuIg+vLaf12oczJmUKOnWnZYwyzbg==; 24:5xDpgjF6ckjvRuxHLlAiwXJGOlXtERzHfzeYE0984lmLkamzNmTvtsZ/cyiXcI6PS/bGfrC/TO0SXaRE2zJyQg60QjK3WRtKNHq2RBarEPY=; 7:STpa8Sd4Cm0h+q8vaiqcCmnBrsA5lKS0YT01B3n+nUxF3FH59ySvA9s9OARTepHp2fgSmtXdnw4uiun2iHjnEHFBnEka6/j+szz9f8gRiuTqHS2SBg5Mto1Utjs9AC99e5wm3vhPyW1RDkv9XBD5vD6n69D2nFcyKJ1l/DHER8ANQCutuV1QfU6Nn4ab/IvacVU599gn3j8NwxjjTZOz50N7nuqIC9U+pojjD9Ys+nYAUNDY4coHNQfbOHK0FjRY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB1189; 20:l7iI4fLsR+X0qGDf9lnbTxuyiwT94OWJFcDpZyoK+EtzOiz1zO6t4806MnxRU//z16XoNx/hWH4NI5mN96Iftg4Gm46jSz483F3WzGngA6pui427/EwlxvU7AI9NmfV0qTs4lS3tm3WU4v7AcYwKUn275lr3x4QgT1xxHZPzkYs= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2016 10:00:23.4431 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB1189 X-MC-Unique: wt3Nz3pOPiWcYVeqnGbSgA-1 Subject: Incorrect invocation of SmiManage()? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 10:00:30 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, The SMM specification (Vol4. PI v1.4) says in the description of the SmiMan= age() function: " If NULL is passed in HandlerType, then only those registered handler functi= ons which passed NULL as their HandlerType will be called. If NULL is passed in HandlerType, then Context should be NULL, CommBuffer should point to an ins= tance of EFI_SMM_ENTRY_CONTEXT and CommBufferSize should point to the size of tha= t structure. Type EFI_SMM_ENTRY_CONTEXT is defined in =E2=80=9CRelated Defini= tions=E2=80=9D below. " However, in MdeModulePkg/Core/PiSmmCore/PiSmmCore.c, there is an invocation= of this function as follows for handling an asynchronous SMI source: " // // Process Asynchronous SMI sources // SmiManage (NULL, NULL, NULL, NULL); " Is this invocation not in violation of the specification. I guess the root = SMI handler is accessing the EFI_SMM_ENTRY_CONTEXT information directly from th= e SMST? I cannot see how this information could be made available to the root handler otherwise. Can anyone please confirm/clarify this? Thanks, Achin IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.