From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: Void lookup limit of 2 exceeded) identity=mailfrom; client-ip=2607:f8b0:4003:c0f::230; helo=mail-ot0-x230.google.com; envelope-from=abh@cs.unc.edu; receiver=edk2-devel@lists.01.org Received: from mail-ot0-x230.google.com (mail-ot0-x230.google.com [IPv6:2607:f8b0:4003:c0f::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9CA77203B9900 for ; Sat, 26 May 2018 08:04:35 -0700 (PDT) Received: by mail-ot0-x230.google.com with SMTP id n3-v6so9213485ota.5 for ; Sat, 26 May 2018 08:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs-unc-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=H1ODq1uQtVw4r0nwc+4xK9J85ts/DVta7MuDvutmFhk=; b=BIUK6PVSLuMNq93TugeaPIU54kiHmbtK+PNHqjW8jH7o4INM1abRDFLmZKJ+N8SUk6 jQWPg8QTY5GNe62biyVMyTNakf3eCUedmRdzmQL2SzgTm4TNHTbRRp1P/B+9TpwaJ0yv B/V6FC0wEFSXiXjD4vQ2QSqDuQ8w+rrNDf5pCTyioLVEzcX18p/H5iCnG63SZz1lc7Ob AHdakxkSpJj0Bez2feK0LkncCk2zx5YXaOm48gfLUDGBW5DDiaZG3MByyofgaB0Q5OIN gqdyjBLL5OVE3unqJjpMJuGKYSagiGxZRZqQD/qCvOLVd87YSuCClfpSLJAbGGKYo7Ll 4eMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=H1ODq1uQtVw4r0nwc+4xK9J85ts/DVta7MuDvutmFhk=; b=c86/I6b78zWkSEiiHh+bS8+Lyj96FdBe5xZadOMKXNDEWJOZIRVyVZm/UsPPtzis+M kTV5chBC31DS70OhYVeq1S9m4sG+Pu6AWdMPSvpcZZR3PZPos2sTiNst0aRfUeAI/r5Z U8DwFLqRppptOxMwil65I6TrotnZa2gbLQGwys0SQk4ureZEpfqxVW+PJHTbvyEvd39O jJfHqBEt/xVopBDAwzawoBYgn+bqA/reB96myuVnnqlVvk2z+pW0KEVHeqB4CZSPLEzV 05Rrlcs0VqFraTJ+ZtxPr+bZ0yXC1/H4Igf27u3OVxxbcTM/9iWF7DfQRjhHpSidXky8 2lnA== X-Gm-Message-State: ALKqPwcJz/zZcIwnHh3k0GMEyoFf+jLmaun8W4j5sktSnvaw9r8t+YLU R2fP7d431S07Qvm1cbGBO/9Xb4PfzLThHEw6IIKSAdEU X-Google-Smtp-Source: ADUXVKKN9vqt03Axzl6M9S1ZihLXUA+Wd4pRK7XAlH0YrFLlhUg9EEU/tfaER8gAaNyUq+mrc1Mdw18h8RlNBWKyADk= X-Received: by 2002:a9d:388e:: with SMTP id p14-v6mr4618181otc.38.1527347074614; Sat, 26 May 2018 08:04:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:525f:0:0:0:0:0 with HTTP; Sat, 26 May 2018 08:04:34 -0700 (PDT) From: Abhishek Singh Date: Sat, 26 May 2018 11:04:34 -0400 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.26 Subject: smm lock query X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2018 15:04:36 -0000 Content-Type: text/plain; charset="UTF-8" Hi, This is the first time I am mailing to this list. If this is not the right place for the kind of questions I am asking please let me know where to direct my queries. I have been looking at the SMM IPL code and a portion of the code is a little confusing to me. In the function SmmIplReadyToLockEventNotify, smram is locked (mSmmAccess->Lock) before the ready to lock notifications are sent through SmmIplGuidedEventNotify. Shouldn't the lock be placed after the ready to lock notifications? Best regards, Abhishek