From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.41.54; helo=nam03-dm3-obe.outbound.protection.outlook.com; envelope-from=brijesh.singh@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0054.outbound.protection.outlook.com [104.47.41.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2A5052249274F for ; Fri, 2 Mar 2018 07:15:38 -0800 (PST) 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=j+rGPRNUDvlIjRFQZl5iv0XiEMtNZ2L1XY+1G18ThUg=; b=NsXEmbMKZddZY8AD8sqULDempp7V1fnOdYhkoJMNFOgSgy9PX1VZDr1Pjp7KlWdrb7FWKM0jFWFCYkacwJVWJ+TlGZKlLk4FCzJEUDJuAvwtTzIME18WweyJIdUFHkGgS0HROoM/fXjFbXOsuuZkkHn6xnOOb8kyc97uI0vbV0k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from [10.236.136.62] (165.204.77.1) by SN1PR12MB0157.namprd12.prod.outlook.com (2a01:111:e400:5144::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Fri, 2 Mar 2018 15:21:45 +0000 Cc: brijesh.singh@amd.com, Ard Biesheuvel , Jordan Justen To: Laszlo Ersek , edk2-devel-01 References: <20180302000408.14201-1-lersek@redhat.com> From: Brijesh Singh Message-ID: Date: Fri, 2 Mar 2018 09:21:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180302000408.14201-1-lersek@redhat.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR11CA0036.namprd11.prod.outlook.com (2603:10b6:404:4b::22) To SN1PR12MB0157.namprd12.prod.outlook.com (2a01:111:e400:5144::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 94a31c49-13ca-46d2-7cab-08d580514fef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:SN1PR12MB0157; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0157; 3:njTRdqj091MkLvtT9/n+BB/vJSujMIHNaZY5Jv7EcnXMvBUzFr4DLJh2XIGC839rIIPpzM/O44gI+ZhcPMY0h21raEmUtTljOmu9VVHLrVf00Q1JOMTfK+RPJeJdPr3JbDdSZPsDPicIRLAc1EOOCQtcvHAR6aOQQj4lzrza01Ffqj0bSYSD1KlkeyVy+2pYjbd/pTASJv8bvcZagq+zGfn8t7z/3+2o8UbgaY/Y+kXKeI3+6qzf9hVR4V9KVrYU; 25:Hw42nPy128Mj1S8G/jtZliUsT3zv1+zXnj2ElFEuCDmp7Whkv9LjJcu+pTNxi5x8ksYy56YbLRQqH1SPOCr/1wFoJYJ+VxjHZSZvzlN0ZbDDQ75eakVoFQ564F0kEVMkMSmB5DLaCm6hXr236RGTxFRskx7Sh1/xNgB0jig93ar1UsTh6GprJVGyxUBYQWbshxTHzeGI7ZGQimWc2Lno1CpiQesIZVB7w8g5FofGdhwj/MO84knbR5CMHNsclsz8YRP6FqUmXD7RI+QzxTS6l73J9F5Jxlr7caEL0SJnxgRiF03vwucFmuqIcMDqhV6UDVkSkGNLa1D0rN2b98/RMg==; 31:wlEb9+n09MAYnSyGW3bTIoO4fuyqD1BrcOTVIvXigfr+ZoZhDxdptfzdKpWMKpbP4TznSLUYfs2c1OrDVmPj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Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(3231220)(944501241)(52105095)(6055026)(6041288)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:SN1PR12MB0157; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0157; X-Forefront-PRVS: 05991796DF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(366004)(376002)(346002)(39380400002)(39860400002)(396003)(199004)(189003)(58126008)(64126003)(54906003)(50466002)(86362001)(4326008)(76176011)(2486003)(52146003)(23676004)(230700001)(16576012)(67846002)(52116002)(2906002)(110136005)(3846002)(6116002)(105586002)(81156014)(386003)(31686004)(25786009)(26005)(16526019)(186003)(478600001)(77096007)(53546011)(316002)(59450400001)(8676002)(81166006)(5660300001)(6486002)(7736002)(305945005)(106356001)(97736004)(65806001)(47776003)(66066001)(65956001)(6666003)(6246003)(36756003)(229853002)(65826007)(31696002)(8936002)(68736007)(53936002)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0157; H:[10.236.136.62]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwMTU3OzIzOjJINlR4dTNlVlJUTHJvb1NRKy9BYXEvaXZC?= =?utf-8?B?WmJXL3FOU1ZNNjBTUy8yWG9ERHdXcnVLQTlPRU5mU2RkemNtaUZCZkZUSHN4?= =?utf-8?B?eFN2dnUvYmRBS3QvamRycjIwd3p2OUdvOVpSZmNHVnU3RzUyMVRZOTBkcERK?= =?utf-8?B?SnBvUFFVdGJ3TDhWOS85R1Fpc040dEJ2ejhpRm5GL2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k3Zod6tOa7yvej/GGArpf2gfCbovuGklfE4jU+DZzK5uPuFKMYEbOvdeLXS9UuS3w7XFaqGL41JL5IZEDkMZbjg9CN0YuQ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2018 15:21:45.9750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 94a31c49-13ca-46d2-7cab-08d580514fef X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0157 Subject: Re: [PATCH 00/20] OvmfPkg: SEV: decrypt the initial SMRAM save state map for SMBASE relocation X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 15:15:39 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 03/01/2018 06:03 PM, Laszlo Ersek wrote: ... > > I regression-tested my usual non-SEV guests (with Brijesh's v2 2/2 patch > applied on top, from the above-referenced series), which covers i440fx > (no SMM, X64), q35 (SMM, IA32 and IA32X64), Fedora and Windows, normal > boot and S3. > > I also tried to test the series with SEV guests (again with Brijesh's v2 > 2/2 patch applied on top). Unfortunately, I didn't get good results with > or without SMM. Without SMM, the guest OS boots to a point, but then it > gets stuck with the CPU spinning. With SMM, OVMF gets stuck in SMBASE > relocation. > > I should mention however that my SEV host setup dates back to November > 2017, including host kernel, QEMU and guest OS. I suppose all those > components have seen many changes since, on the respective upstream > lists. I'll have to work with Brijesh to update my SEV host to the > latest bits. > > Until then, Brijesh, can you please test this series? Thank you! > I tested the series on SEV and non SEV guest (with my v2 2/2 patch applied on top of this series). The result is positive, I am able boot both SMM and non SMM enabled BIOS. Once again, thank you so much for cleanup. I will submit by v2 2/2 patch after your series is pushed to the tree. Tested-by: Brijesh Singh Reviewed-by: Brijesh Singh -Brijesh