<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Hi, Sami<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Please see my comments inline.<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>+**/<o:p></o:p></pre>
<pre>+EFI_STATUS<o:p></o:p></pre>
<pre>+EFIAPI<o:p></o:p></pre>
<pre>+CcMeasureAndLogData (<o:p></o:p></pre>
<pre>+  IN UINT32             PcrIndex,<o:p></o:p></pre>
<pre>+  IN UINT32             EventType,<o:p></o:p></pre>
<pre>+  IN VOID               *EventLog,<o:p></o:p></pre>
<pre>+  IN UINT32             LogLen,<o:p></o:p></pre>
<pre>+  IN VOID               *HashData,<o:p></o:p></pre>
<pre>+  IN UINT64             HashDataLen<o:p></o:p></pre>
<pre>+  )<o:p></o:p></pre>
<pre>+{<o:p></o:p></pre>
<pre>+  EFI_STATUS                    Status;<o:p></o:p></pre>
<pre>+  EFI_CC_MEASUREMENT_PROTOCOL  *CcProtocol;<o:p></o:p></pre>
<pre>+  EFI_CC_EVENT                 *EfiCcEvent;<o:p></o:p></pre>
<pre>+  UINT32                        MrIndex;<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal">[SAMI] Same comment as in patch 2/3. Is it possible to use the typedef for the measurment register index here, please?
<o:p></o:p></p>
<p class="MsoNormal"><span style="color:windowtext">[Min] Thanks for reminder. It will be fixed.<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><o:p> </o:p></pre>
<pre>+<o:p></o:p></pre>
<pre>+  Status = gBS->LocateProtocol (&gEfiCcMeasurementProtocolGuid, NULL, (VOID **) &CcProtocol);<o:p></o:p></pre>
<pre>+  if (EFI_ERROR (Status)) {<o:p></o:p></pre>
<pre>+    return Status;<o:p></o:p></pre>
<pre>+  }<o:p></o:p></pre>
<pre>+<o:p></o:p></pre>
<pre>+  Status = CcProtocol->MapPcrToMrIndex (CcProtocol, PcrIndex, &MrIndex);<o:p></o:p></pre>
<pre>+  if (EFI_ERROR (Status)) {<o:p></o:p></pre>
<pre>+    return EFI_INVALID_PARAMETER;<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal">[SAMI] Is it possible to return the error code returned by  CcProtocol->MapPcrToMrIndex(), please?
<span style="color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">[Min] Sure. It will be updated in the next version.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:windowtext">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Min</span><span style="color:white">_._,_._,_<o:p></o:p></span></p>
</div>
</div>
</body>
</html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/83361">View/Reply Online (#83361)</a> |    |  <a target="_blank" href="https://groups.io/mt/86758672/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>