From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.64]) by mx.groups.io with SMTP id smtpd.web12.1239.1588789996834325685 for ; Wed, 06 May 2020 11:33:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=nUZL3n5Y; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.244.64, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lf3yyrWCx1QLdaxiJ3vtMKBUvqYgLTYHe+e6DKjoVsT3wNlLmbne7zVRkTe711GvVngGRN6Symt3NO9p+OW/0Dw1Wj/8kAe35oBkNYwLk9AEC5dXghHdwjnvVtFEQNXNE+PuC06JDOI9dc2GqQtDqpm7YfYvwUapN9cq75YMTzIAyOcdO39wEy6JZfHJZ9/AIX5et+YHZNauyIzRJLG73/S6ZCXH94kmFP5HxUsqxz4aU9BoSfcdLZc6C7Cy8FrVYWCHA5hrp1LrRunSL4k++nrhuawEWJr2QxjzVwVvnrEaqmYW5qFj4EbtcJxVId8JwM2bK8NOwo+BNI2BoO779g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LjFx9I9fbcwUzCEfL6BjszYOIgZB/AJ7BLUcpRdav7E=; b=QC38sPXeZgEjBec860q2kVZ27teoc3lYRvywZrjV1XGTKtFdTFRMJR3Uw/QzJJ5OKBiXpzgzW7bqcwT3yYgRnogTAHxz29bSYJ8yIthNh37v1W0B5Hn60AnpXjtdE8YTj957dJie6zoWhFBI/rSwhPFC0AQaot21m5dqRoxrdCIa75xQIFd2rH0zXpMoA5F6XfLsVbN2yMvtjQvT1vGKRcQsvMXSv5dAj7aaAn8Ii5kqsOzshZDH5JDQF0U6WNBAyqd5N8OBwTCCBpNB5HlSkdJm4L8thL2qigmLVfQrK4OJbDN92Xd6p68zF5WBl5DZa+xy9u5eRkgEXVPXbZOBWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LjFx9I9fbcwUzCEfL6BjszYOIgZB/AJ7BLUcpRdav7E=; b=nUZL3n5YFo+uPUU2XJ5Z6PCpE3eYXB7BeikIwjF/VVhBT7so6ncIk/BDWBiDMAixZ8UbqLNFTg4JsyBkdgvQ0hbTAroZjWtTbV4VRDJeEq7iR1dz4dF1uAoTLoTOCfIn0I8zolTlxkzNiDQ2X8ki8UNWHKhHOGcluBFwD6pMxWU= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM5PR12MB1385.namprd12.prod.outlook.com (2603:10b6:3:6e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.29; Wed, 6 May 2020 18:33:15 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.2958.030; Wed, 6 May 2020 18:33:15 +0000 Subject: Re: [edk2-devel] [PATCH v7 01/43] MdeModulePkg: Create PCDs to be used in support of SEV-ES To: "Dong, Eric" , "devel@edk2.groups.io" , "lersek@redhat.com" Cc: "Justen, Jordan L" , Ard Biesheuvel , "Kinney, Michael D" , "Gao, Liming" , "Ni, Ray" , Brijesh Singh , "Wang, Jian J" , "Wu, Hao A" References: <3af2e4a8-fa4d-bb29-a282-c406ada7cf06@amd.com> <66c3ab32-0b1c-676b-2924-f14214be5de6@redhat.com> <226c8566-6550-613c-e07c-636686a851f9@amd.com> From: "Lendacky, Thomas" Message-ID: <13992141-8be7-bdb4-e104-9036dddbb04d@amd.com> Date: Wed, 6 May 2020 13:33:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 In-Reply-To: X-ClientProxiedBy: SA9PR11CA0020.namprd11.prod.outlook.com (2603:10b6:806:6e::25) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from office-linux.texastahm.com (67.79.209.213) by SA9PR11CA0020.namprd11.prod.outlook.com (2603:10b6:806:6e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Wed, 6 May 2020 18:33:14 +0000 X-Originating-IP: [67.79.209.213] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 75f6e7ee-5c48-488d-087f-08d7f1ebf05c X-MS-TrafficTypeDiagnostic: DM5PR12MB1385:|DM5PR12MB1385: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 03950F25EC X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 05JIiyhkdht9ud7gAQDA8G8U6k3m9nY/0qnId8Vx3abniRIj3mcMtj2jY4JhmhNQZwZcC+Wv/qAGzcD1DzVbBRt9dFU1MG5XPc1sUBZxTeLyAyTVg4M95K8qHPNnSsQ40QIE+m1QbXNWyfNpVzK66oEHO04580mFZpr9bCR5J0mxfn2qnGm+z9nPzaA+PQNTnPc7/WtYbUrXwcGQqkTlPHN8Bh5JDYM3TNao6a+PhO98KdRCQb2exQzTzbReL2YzBdaNeX8uxhYkZx0JXOOTMSqNYmE+gOEeg7AhjR9q/FaQfzJ9/LiFV4VKole3u7JCVqKHR1hxViMuA9tuvZjEjbhDO6XTgxfZQuukYNXt1iOzkh/x4wXFXzH2dBrMrYzQEqhec0It4sWyph1iZc8rF+7SeAs4Mn2UlFT8LxKKvBYSOutflO1SYFpnN4sFH+SQnc4ELeHtjGkqCEF2+LdyHaVGOjKhAm1zriph6S+V9PE7hS3aOCSbbKGpuBfMsGYqGnViw6wvKtMzx4maIAf4Kp27Koxkq4BxZ8oNFYbMY/SuOKHN5rzxYoUaCG1D64JTfLpjdj0YEmyrp6Y0GZVmwCzFUbM4tvqRlVtxUxQU7gkK3DdxfwqD4V9u6PB9ECe2 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1355.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(346002)(376002)(396003)(366004)(136003)(33430700001)(478600001)(45080400002)(86362001)(66476007)(66556008)(36756003)(7416002)(19627235002)(966005)(66946007)(33440700001)(5660300002)(26005)(53546011)(6486002)(31686004)(6506007)(16526019)(2616005)(186003)(31696002)(83080400001)(52116002)(956004)(4326008)(8936002)(2906002)(6512007)(54906003)(110136005)(8676002)(316002)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: g5WD8wGddgZD38tS3DVJdpTh+Cnc3DSXGUqDhYgoOvLK8XQge2xj5aA1HNysfNW2WAdhGxYWb2Gek336PSn4LLJqxh9HF+x4Y32+AFgXncdNCy9pP436IrgsCMK01J2c84d3htA7MxMzTkX/Ed0aqhwGCEnMElbwHeXDTTKy+2hsF0hhkAMXzW7tkSr2Zhht/nXM4ruK/qeEzH918G3JPAK/8zvHFNEFZbQV72yeZSTL4rZ7E51Pq5Nm8dFQfjLfJ3Nk9otTtN2iHAU5XxV0ucNH+Pql7CJoo6EAo4bOJyHbKPaaXZYgdu6B5ctWfIM/fKNGPMpDw5uNwCpLi6CLj6lUUxH09PCPBURl1EAKShxz9OST8wrJP7nWOPewAxaeyO3o3XN/tCb2iilK4l1MP8WD6gzNRCiVThLlcqxXYCY6VkHawtaQk2ZV1jKkpo+1Hzqp2Us1PaHOIfVMqxNR/d47VWVaHv6ykEDW+sy588Wim3pz2ZQYottCiQixDDtVxg+DZc3lKnBBFFBrmr9Q98TLt0B6SWks7utqs1ayIiBOrdB/L62+Ge0G9tCmwdZwngR2SNt/X+E1tFHM0ublQMpEEbbi/QL1enl2q4/QU96PaPzGrCjmVm/k1sjXIY++84l2xCxpQL/qVmcCgEThGHwNGriKmGPg8cBM3FzU+f1wnnek8CSj4Ati2UNlXBZFU8axflE66VN3h4gRyAAyXQUBIsX3cT1xDpbn1SnavFBDxEQ3tUJu32TWIJN7o1WgCr3BmOfw2bJqFilLIywUXavAx0duDMU+AlBLRtQId7A= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75f6e7ee-5c48-488d-087f-08d7f1ebf05c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2020 18:33:15.0915 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RIijILe8YT3uQghbYvW74BXl0pQaukwyqdtBnAe0xnu9BYzA6F9isxGBK9jF85J0T7GbnBu+jwqnwtHSU1TlGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1385 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Hi Eric, On 5/6/20 10:06 AM, Dong, Eric wrote: > Hi Tom, > >> -----Original Message----- >> From: devel@edk2.groups.io On Behalf Of >> Lendacky, Thomas >> Sent: Wednesday, May 6, 2020 9:20 PM >> To: Dong, Eric ; devel@edk2.groups.io; >> lersek@redhat.com >> Cc: Justen, Jordan L ; Ard Biesheuvel >> ; Kinney, Michael D >> ; Gao, Liming ; Ni, Ray >> ; Brijesh Singh ; Wang, Jian J >> ; Wu, Hao A >> Subject: Re: [edk2-devel] [PATCH v7 01/43] MdeModulePkg: Create PCDs to >> be used in support of SEV-ES >> >> On 5/5/20 8:53 PM, Dong, Eric wrote: >>> >>> >>>> -----Original Message----- >>>> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of >>>> Laszlo Ersek >>>> Sent: Tuesday, May 5, 2020 11:30 PM >>>> To: Tom Lendacky ; Dong, Eric >>>> ; devel@edk2.groups.io >>>> Cc: Justen, Jordan L ; Ard Biesheuvel >>>> ; Kinney, Michael D >>>> ; Gao, Liming ; Ni, >>>> Ray ; Brijesh Singh ; Wang, >>>> Jian J ; Wu, Hao A >>>> Subject: Re: [edk2-devel] [PATCH v7 01/43] MdeModulePkg: Create PCDs >>>> to be used in support of SEV-ES >>>> >>>> On 05/04/20 18:41, Tom Lendacky wrote: >>>> >>>>> Is there an easy way to run everything that this link points, too? >>>>> Is it just creating a pull request that does this? I don't want to >>>>> take up a lot of your time, so if there's some documentation on how >>>>> to run an integration test to find and fix issues like this, just point me to it. >>>> >>>> Just create a pull request; it will set off CI, and you can review VS >>>> build errors there (if any). >>>> >>>> Your PR will automatically be closed (rejected) regardless of whether >>>> CI succeeds or not. PRs are merged -- in fact, *auto*-merged, by the >>>> "mergify bot" -- if and only if (a) the CI run succeeds, and (b) the PR has >> the "push" >>>> label set. >>>> >>>> And only edk2 maintainers have permission to set the "push" label. >>>> Any PR without the "push" label qualifies as a "personal test build". >>>> So you can freely experiment with PRs, because you can't (even >>>> unwittingly) satisfy condition (b). >>>> >>>> >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit >>>> hub.com%2Ftianocore%2Ftianocore.github.io%2Fwiki%2FEDK-II- >> Development >>>> - >> &data=02%7C01%7Cthomas.lendacky%40amd.com%7C9cff3475aff84a9 >> 57285 >>>> >> 08d7f1604c99%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C63724 >> 326821 >>>> >> 7382019&sdata=3%2FIKB174QaVLaqO0u1gdrL0izXmhEZ%2Byvj3iC13UYB >> c%3D& >>>> amp;reserved=0 >>>> Process >>>> >>> >>> Thanks Laszlo for your explanation. >>> >>> I found this patch serial is incompatible for the existed platforms. >>> Can you help to fix the build failure for these platforms in >>> >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith >>> ub.com%2Ftianocore%2Fedk2- >> platforms&data=02%7C01%7Cthomas.lendacky >>> %40amd.com%7C9cff3475aff84a95728508d7f1604c99%7C3dd8961fe4884e6 >> 08e11a8 >>> >> 2d994e183d%7C0%7C0%7C637243268217382019&sdata=jU0qrB%2BV6Z >> vFmPzjcx >>> Go9o2Pu1%2FrhRW0gUZTMv%2BiXDQ%3D&reserved=0 >>> >> >> I have fixed all of the build issues associated with the VS compiler using the >> pull request method that Laszlo mentioned. I then successfully built the RPi4 >> platform under GCC (build -n 32 -a AARCH64 -t GCC5 -p >> Platform/RaspberryPi/RPi4/RPi4.dsc) using the AARCH64 cross compiler. >> >> Is there a particular platform that experiences an issue or are the failures >> related to the VS compiler errors that my next series will have fixed? > > I used the KabylakeRvp3 platform with your changes in Edk2 and met failures. > KabylakeRvp3 code at Edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\ > > I used below command to build the code. > C:\Code\OpenSource\edk2-platforms\Platform\Intel>build_bios.py --platform KabylakeRvp3 > > You need clone below repositories to build the code. > Edk2: git@github.com:tianocore/edk2.git > Edk2-Platform git@github.com:tianocore/edk2-platforms.git > edk2-non-osi : git@github.com:tianocore/edk2-non-osi.git > FSP: git@github.com:IntelFsp/FSP.git On my Linux system, I cloned all the libraries and set the WORKSPACE and PACKAGES_PATH env variables, sourced edksetup.sh and issued: python3 edk2-platforms/Platform/Intel/build_bios.py --platform KabylakeRvp3 and got the following errors: Traceback (most recent call last): File "edk2-platforms/Platform/Intel/build_bios.py", line 1097, in main() File "edk2-platforms/Platform/Intel/build_bios.py", line 1067, in main platform_config = get_platform_config(arguments.platform, build_config) File "edk2-platforms/Platform/Intel/build_bios.py", line 904, in get_platform_config path = platform_data.get(platform_name) AttributeError: 'NoneType' object has no attribute 'get' I don't know what I'm missing as to why this error pops up. How is this done on a Linux system? Did your build fail because of the VmgExitLib library not being specified? If the platform includes the CpuExceptionHandlerLib or MpInitLib libraries then it will now also need to include the VmgExitLib library. I wish the build system could figure out that because the VmgExitLib library is specified in the various CpuExceptionHandlerLib INF files and the various MpInitLib INF files, it would automatically know to include it in whatever uses those libraries. It doesn't seem right that you would have to know and specify the library requirements of a library you are including when the system could figure it out. Thanks, Tom > >> >>> I think you also needs to add an wiki page to explain what need to do if an >> platform needs to integrate your changes, also it's better to explain this >> feature in the page. >>> >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith >>> >> ub.com%2Ftianocore%2Ftianocore.github.io%2Fwiki&data=02%7C01%7 >> Ctho >>> >> mas.lendacky%40amd.com%7C9cff3475aff84a95728508d7f1604c99%7C3dd89 >> 61fe4 >>> >> 884e608e11a82d994e183d%7C0%7C0%7C637243268217382019&sdata=x >> LkoV4zW >>> hxtsbqszqPc0lEAl%2BYLL%2B2wg1nIXql8a64E%3D&reserved=0 >> >> I don't see any platform other than OVMF using this feature as it is a >> virtualization feature. Having said that I can add an explanation of what is >> needed should another virtualization platform be created under EDK2 that >> wants to support SEV-ES. And, as you said, I can also explain the feature >> overall on the page. >> > > I think your page includes two parts, one is how to change the platform code to make the platform pass build, > the other is if the platform needs to enable the virtualization feature, how to enable it. > >>> >>> >>> If you want to include this change in the next edk2 release, you need >>> to add one item for it in the release plan page, sample can be found >>> in below pages: >>> >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith >>> ub.com%2Ftianocore%2Ftianocore.github.io%2Fwiki%2FEDK-II-Release- >> Plann >>> >> ing&data=02%7C01%7Cthomas.lendacky%40amd.com%7C9cff3475aff84 >> a95728 >>> >> 508d7f1604c99%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6372 >> 4326821 >>> >> 7382019&sdata=kcDVjYHMS9bRRZOlKEk5ynFNT39AnxchJAMak%2Bn870 >> I%3D& >>> ;reserved=0 >> >> Thanks. Is there anyone in particular that I need to request this feature be >> added? > > You can syn with Liming, he is the edk2 release manager. He owns edk2 stable tag release task. > > Thanks, > Eric >> >> Thanks, >> Tom >> >>> >>> >>> Thanks, >>> Eric >>> >>>> Thanks, >>>> Laszlo >>>> >>>> >>>> >> >> >