From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from barracuda.hxt-semitech.com (unknown [223.203.96.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 12EFC20958BE9 for ; Tue, 5 Sep 2017 20:18:45 -0700 (PDT) X-ASG-Debug-ID: 1504668091-093b7e6c0800ab0001-cWE87X Received: from HXTBJIDCEMVIW02.hxtcorp.net (localhost [10.128.0.15]) by barracuda.hxt-semitech.com with ESMTP id awxOlb4vIYrXBGRG (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 06 Sep 2017 11:21:31 +0800 (CST) X-Barracuda-Envelope-From: ge.song@hxt-semitech.com Received: from HXTBJIDCEMVIW01.hxtcorp.net (10.128.0.14) by HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) with Microsoft SMTP Server (TLS) id 15.0.847.32; Wed, 6 Sep 2017 11:21:31 +0800 Received: from HXTBJIDCEMVIW01.hxtcorp.net ([fe80::f451:a443:c0b5:87d1]) by HXTBJIDCEMVIW01.hxtcorp.net ([fe80::f451:a443:c0b5:87d1%12]) with mapi id 15.00.0847.030; Wed, 6 Sep 2017 11:21:31 +0800 From: "Song, Ge" To: "songgebird@gmail.com" , "edk2-devel@lists.01.org" CC: Jordan Justen , Laszlo Ersek , Ard Biesheuvel Thread-Topic: [PATCH v3 1/1] OvmfPkg/SecMain: Fix stack switching to permanent memory X-ASG-Orig-Subj: RE: [PATCH v3 1/1] OvmfPkg/SecMain: Fix stack switching to permanent memory Thread-Index: AQHTJr3n0+YIebGMuEaKhvjqCsiFF6KnMN0Q Date: Wed, 6 Sep 2017 03:21:30 +0000 Message-ID: <17eff956a7e949359a308f60935f2314@HXTBJIDCEMVIW01.hxtcorp.net> References: <20170906031135.10358-1-ge.song@hxt-semitech.com> <20170906031135.10358-2-ge.song@hxt-semitech.com> In-Reply-To: <20170906031135.10358-2-ge.song@hxt-semitech.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.64.16.208] MIME-Version: 1.0 X-Barracuda-Connect: localhost[10.128.0.15] X-Barracuda-Start-Time: 1504668091 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://192.168.50.101:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hxt-semitech.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.4996 1.0000 0.0000 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.42645 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: Re: [PATCH v3 1/1] OvmfPkg/SecMain: Fix stack switching to permanent memory X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2017 03:18:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Q29udHJpYnV0ZWQtdW5kZXI6IFRpYW5vQ29yZSBDb250cmlidXRpb24gQWdyZWVtZW50IDEuMQ0K U2lnbmVkLW9mZi1ieTogR2UgU29uZyA8Z2Uuc29uZ0BoeHQtc2VtaXRlY2guY29tPg0KDQpCZXN0 IFJlZ2FyZHMsDQpTb25nZ2UNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IHNv bmdnZWJpcmRAZ21haWwuY29tIFttYWlsdG86c29uZ2dlYmlyZEBnbWFpbC5jb21dDQpTZW50OiAy MDE35bm0OeaciDbml6UgMTE6MTINClRvOiBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZw0KQ2M6IEpv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