From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0074.outbound.protection.outlook.com [104.47.42.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6B76021EA35CC for ; Tue, 5 Sep 2017 07:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=M2GRZ0ezBspuejOfEilz3u77tgSg5QWEBp7DJ2UXrBw=; b=qI6iK9yAanuHdMpICfd2/0Mxl8kHpUiJJj6OpoPMZU3r0ZmnDo8+oDsR3nbm9Q5llXNjD+V2YTrk5EH6uwwPmmZ7dy1JhthOkJnqk9xCkkz2bjJJwcmm3LdMiMYYUHiEiYuP7IXYaRWreFRb8a64fkGEMwe9sawfA1RdHUlRJUk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from [10.236.136.62] (165.204.77.1) by BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Tue, 5 Sep 2017 14:33:19 +0000 Cc: brijesh.singh@amd.com, Jordan Justen To: Laszlo Ersek , edk2-devel-01 References: <20170904155717.31591-1-lersek@redhat.com> <20170904155717.31591-3-lersek@redhat.com> From: Brijesh Singh Message-ID: <9ab9bb4d-dfbf-8352-1506-77e191720524@amd.com> Date: Tue, 5 Sep 2017 09:33:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170904155717.31591-3-lersek@redhat.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR03CA0014.namprd03.prod.outlook.com (10.168.230.152) To BY2PR12MB0145.namprd12.prod.outlook.com (10.162.82.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f7023fc-39f7-4a59-03ec-08d4f46b0e64 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR12MB0145; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0145; 3:TypymAAXlzY4nXlb4fNMfLl7OiOig7pLznFYhmQljVLE/DxAnKQwJMWlvrDpeR8tgrvVIelR3cyOkpkpcuS+nQiciggM4NjshuKqwSvitH46po7Kp4lCQXSNlnB+Kgihw2ICL1L3RkxnGdwRkwB7CN0lgrKA+eYbe4GrtuSECZuKNjEg4WT4x8cbaOmHHjagC5dSG4HLvW5HSQ7/xPmy+oR/7Kx7Kt1hvHVo2U8ahRFMTBloqj7IJtwTaxPIZCJR; 25:gI5UOhdv+HJHaVhWYt5VBBhNXQ5HeUd9JgDD3iCA+MT+FYMWBsvf5ebCoA9KbyYtOvLJFNOzf4xUGY3nZjmy8bRHTfrKPwmbSX0ixN7erAy+tmMcDEFbSEdq42sIr0nDCl1tdyuKAHB5wRVeFxLo5aIeUrZB6FA561Tw1C09WaFpBa0vvkZTLaBbpdjx03xdkB+XknIi3TERMPLIpv2d1Ko3p+KqOTw2i3apCBJfrAj64T8pSaFp+tr73MOeYWbyedRHlLa44nVlS2P7IBL2HV9Tru1ni6ZMRXR7UN5noThs1XiBJhnkziFR1zWY/IkLWEq3hsCAyFL/2VzuWbrTbw==; 31:JfOIe3yWjyVqIetS1AvpZangmIcjFPx3nRC2ieoS5FgBkSbY1EaHVzO9nvuros95rKQOGkjk4uDPg+g9DQpnpI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geryw== X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR12MB0145; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR12MB0145; X-Forefront-PRVS: 0421BF7135 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6029001)(6049001)(6009001)(39860400002)(189002)(199003)(377454003)(377424004)(24454002)(36756003)(6246003)(15650500001)(31696002)(105586002)(230700001)(189998001)(86362001)(6116002)(76176999)(3846002)(7736002)(2906002)(106356001)(42186005)(305945005)(4001350100001)(50986999)(54356999)(53936002)(97736004)(33646002)(65826007)(5660300001)(66066001)(65806001)(8936002)(65956001)(47776003)(8676002)(81166006)(81156014)(50466002)(2950100002)(68736007)(6666003)(53546010)(101416001)(4326008)(229853002)(77096006)(90366009)(31686004)(64126003)(83506001)(478600001)(23676002)(6486002)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0145; H:[10.236.136.62]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjEyTUIwMTQ1OzIzOnlwQTJCTTN4N2ZLSDBWL2hXOVNXQjJ5UU5I?= =?utf-8?B?Q3RYaTRob0svaU96Qmp1T09hS09YTVlJNVNJ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Apm3ND2rZLG6bjRSRGCTDl8DYh25ieBKVC8hQ5LElxvSfR/tUkBOkXDZttPH5+hpWjrlBZJin7d9/EPlBUFGHSm7sy7TkeI+sUvYqf5YtOnd7tZc3nGQulqfEwQDmG7rTsB23sMq6AxXPfNz6zsZgv6N4gwT16cm0bBLi+DB0zhvWzPe9ZK9PpvBfKuCqopdGf X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2017 14:33:19.9946 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0145 Subject: Re: [PATCH 2/2] OvmfPkg/PlatformDebugLibIoPort: write messages with IoWriteFifo8() 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: Tue, 05 Sep 2017 14:30:33 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 09/04/2017 10:57 AM, Laszlo Ersek wrote: > Since commit 19c6d9feaaf8 ("MdePkg: Expand BaseIoLibIntrinsic (IoLib > class) library", 2017-01-14), IoWriteFifo8() has been widely available to > modules. Use it to print debug messages and assertion failures to the QEMU > debug port, rather than open-coded loops. > > In the general case this speeds up logging, because debug messages will > now trap to QEMU once per message (as opposed to once per character), due > to "REP OUTSB" in "MdePkg/Library/BaseIoLibIntrinsic/*/IoFifoSev.nasm". > > In SEV guests, there is no speedup (SEV doesn't support the REP prefix). > SEV is detected internally to BaseIoLibIntrinsic. > > Cc: Brijesh Singh > Cc: Jordan Justen > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Laszlo Ersek Acked-by: Brijesh Singh