Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp463812lql; Mon, 11 Mar 2024 07:54:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOnXRb+QN3hFKachpQ3fj1XFiGa9UnV6jIAOuUDeBF0aQb954zEM39qwMAuNof3WRVlTijgMrzSaJQ2H1qf3CwxCk8szGb0BAFyaC61Q== X-Google-Smtp-Source: AGHT+IGfYI+YtyyFgDAIv3c3G8bVKY/B1JMjQI+mxagoanOYGYIjKlqwVl3YyVA4/ZBAJlbnD4HA X-Received: by 2002:a17:902:e5d2:b0:1dd:a3d6:3af8 with SMTP id u18-20020a170902e5d200b001dda3d63af8mr2195794plf.31.1710168875899; Mon, 11 Mar 2024 07:54:35 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z1-20020a170903018100b001dd0911c9dbsi4894601plg.84.2024.03.11.07.54.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:54:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="uxbgW/Qe"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-99010-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99010-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7BA052866CB for ; Mon, 11 Mar 2024 14:53:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A81C443ADB; Mon, 11 Mar 2024 14:50:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="uxbgW/Qe" Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2065.outbound.protection.outlook.com [40.107.92.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FF7F4DA1A for ; Mon, 11 Mar 2024 14:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.65 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168637; cv=fail; b=XImBd9/8OCWYG4jp2OCDVlkNP7NHS+7TE3UdSYvRRIgPjLj8z6Tx0qsF9dT/wSzoho2/82DQU0HX2HJB3mC8mIglJHJGY9nccmKyydSq/jHT+mtHop895/wsaDouh8PxUBUBa/nUKm4ZJRwoqUl4bh2aZrzOmNk5j43CIUWiLKs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710168637; c=relaxed/simple; bh=44WSgFQxQmkruLzjbSs7WeFHsuIaVkX3On9mVLFAT4s=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=hnrYneYRElXYsCzxoL05ROuh4iUI0VH64GOkKg9++sUf/ukXl7ZeDY2mgE/1NV7Kbix8z+Z91AZxgKhx0WDSOZM+2eExVk2SyESzHDMj3UPrTOWqfBmNfOV27scpHMY8CqP0S47AoMOxohGBSx82QEldFZQKshh6MB31MrrlYuo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=uxbgW/Qe; arc=fail smtp.client-ip=40.107.92.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mK9QQZz9wChWlwy2Qf/HOt3lOBHbKPHx00v67wAORrkE+7VWfi1ehZG2F2PyMEDMPnBQNhe2OqSQ47TKWrJevoIyKLR01/POB0tlQifLERTR0tmqlh8D5K3yr0vr5ubtXwQBpXPuG9xusgwxOvJfkV6U7TOD4DVlwNfdivPSnI5ofObrJdBReoirtj/XKZ/Bi3nZdHzo0ymQ+a2lsu+3i2nIx9pRHJJQmIhbTrDJsGQ/nOfT9KQPQRYMHUh722cJ/h0jkd1FZiTs5m41Xk35ELf9YAE5Prt2EMcfzLcAHIbFUSyfK+QtTAiRZ949XlLqjNT/jYuAupsCFkyGkiyWkA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=luA7mhczZLCc6KDEpjleB0j/K8KwQ6w2Wo7YVyCWiH0=; b=VZ3Ov01swZGkvWy2hyquOtv6XJG2engP7zCcMuTiuNbTBHv9yQHJt9dRUUnM3YI420giL0NW/9YhOdxFXFcwrR+zH7WeTx5GsNgCU2LvK41kh8ZUiS/ULDm+iJTskcvKPlPMfQY77PVaDfHluRIksXLPd8DEKl2D2+Q0+2aYcONRGljrGFcf0dEvqOxflCsjRM+hRjPDxT2XHjLF2cSCYIOjyG2wbfKKq6JfYu2vysSCXWw1Yll7gu+hVTGzE5xL0laO3HrVTSedU1+1n+aG5hf8MROvSrraF1sUr783xQ7u/zo8KnJHwDNCx2vBBTZe77UWIh16bUtretNtSH7K3Q== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=luA7mhczZLCc6KDEpjleB0j/K8KwQ6w2Wo7YVyCWiH0=; b=uxbgW/QeOBEYSVK1Eok9yw68x5gm+0Oi+N6abzvscu27wYu3YOKBFzx/c5NVSdEGr9c07uTySqdvaRnxxEVSm/e1qQ95gbgcAGxbsUOhA5TEN8LBsaEzlALuOx7MLGWYYAzlg4GIVUTGkkDqOTtoIJ6L0I6rrmhGvsTmOVpuZSo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by MN2PR12MB4341.namprd12.prod.outlook.com (2603:10b6:208:262::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Mon, 11 Mar 2024 14:50:32 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::4c26:40af:e1fd:849e]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::4c26:40af:e1fd:849e%7]) with mapi id 15.20.7362.035; Mon, 11 Mar 2024 14:50:32 +0000 Message-ID: <44d0311f-9c7d-4b47-8b09-a56d3283c1c6@amd.com> Date: Mon, 11 Mar 2024 09:50:29 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 03/14] x86/sev: Check for the presence of an SVSM in the SNP Secrets page To: Dionna Amalie Glaze Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Dan Williams , Michael Roth , Ashish Kalra References: Content-Language: en-US From: Tom Lendacky Autocrypt: addr=thomas.lendacky@amd.com; keydata= xsFNBFaNZYkBEADxg5OW/ajpUG7zgnUQPsMqWPjeAxtu4YH3lCUjWWcbUgc2qDGAijsLTFv1 kEbaJdblwYs28z3chM7QkfCGMSM29JWR1fSwPH18WyAA84YtxfPD8bfb1Exwo0CRw1RLRScn 6aJhsZJFLKyVeaPO1eequEsFQurRhLyAfgaH9iazmOVZZmxsGiNRJkQv4YnM2rZYi+4vWnxN 1ebHf4S1puN0xzQsULhG3rUyV2uIsqBFtlxZ8/r9MwOJ2mvyTXHzHdJBViOalZAUo7VFt3Fb aNkR5OR65eTL0ViQiRgFfPDBgkFCSlaxZvc7qSOcrhol160bK87qn0SbYLfplwiXZY/b/+ez 0zBtIt+uhZJ38HnOLWdda/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0ruUpA udREH98EmVJsADuq0RBcIEkojnme4wVDoFt1EG93YOnqMuif76YGEl3iv9tYcESEeLNruDN6 LDbE8blkR3151tdg8IkgREJ+dK+q0p9UsGfdd+H7pni6Jjcxz8mjKCx6wAuzvArA0Ciq+Scg hfIgoiYQegZjh2vF2lCUzWWatXJoy7IzeAB5LDl/E9vz72cVD8CwQZoEx4PCsHslVpW6A/6U NRAz6ShU77jkoYoI4hoGC7qZcwy84mmJqRygFnb8dOjHI1KxqQARAQABzSZUb20gTGVuZGFj a3kgPHRob21hcy5sZW5kYWNreUBhbWQuY29tPsLBmQQTAQoAQwIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheAAhkBFiEE3Vil58OMFCw3iBv13v+a5E8wTVMFAmWDAegFCRKq1F8ACgkQ 3v+a5E8wTVOG3xAAlLuT7f6oj+Wud8dbYCeZhEX6OLfyXpZgvFoxDu62OLGxwVGX3j5SMk0w IXiJRjde3pW+Rf1QWi/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owed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SA9PR13CA0037.namprd13.prod.outlook.com (2603:10b6:806:22::12) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|MN2PR12MB4341:EE_ X-MS-Office365-Filtering-Correlation-Id: cd72cd4a-9c27-46f4-171c-08dc41da99dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VrE8mZpewkQ5BFV6pS0tZ209u2DISryFZt5haoXAwH1LlOeetULoek5W9OwCq+937AYPxBxsMFaIWYcM0iRIy1OMf9Ddx4iJGJJt9m00A4V0+kYOv+WhEy6wU7eXWPA4jfN40/LPGqoAagj9ofiK/NljJU11OYxMSNysz/brfaI9+ukIBzvMWuE/qhbe7vkX9yHIwxXuDgbtfitu0274e0ZU9jP6HA/RKdFtIv0RxwUXZM1eIzJqWdBCF7SclS262sAHLHkSyiAd7FoB+Q+UnkboDqx6wSPORX7R2UivkKB4kpr1s4Vk0q9peOCjEjfq++cWgX4blaqsRJeN/MDHnJg+dyxhQrdqI3ADxN3qDWXZ+2qBp1ijTEaGpg3kSEcfWLP/bt5lVJgLZknEqyTB5nTqDABJkOM8wcaCK/wrTrAlrlVRQQHdDZ+A7YZSWPuTmW2owaIqIqaN6XhU7dggIxy1E1DtqHZOs0QEplOoLLy/JhLI1Sd+THBvUaZ6Mv022K0Ps2S69yDVljlmetmzpMmDiG/wBGs+VyPgS2X7YKKpT0Ww+X/XSNqYUKKedsumCdMq/S0M7rEYTH2RkHfBfNqT6ppP+++r2Hf3gWltVYQZObeeESRQB7xzZBGZxCuPA58coepIjdFUO05sHBSO8/YV3jRpqp5GzszQeQJzWaA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5732.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?USt0ZVlIMFcwTVdRM0xid25wckx0dEYvWkJtMmFqZktuZUZhM253WDFBSDB0?= =?utf-8?B?V2R2OUV0Q0ZJT1VsVTY0bXM2NjhucGtaOCswL0NTb0JhclpPckM0aGMvVkE2?= =?utf-8?B?VDZMaHFmemtzZ1YxcVhJWEgvUXZSa0FaY2pTTHFiNThTN2hDMGwza1BnWkFO?= =?utf-8?B?UUZVT3BPamVnR3l4YnFrZzYycU5VSENabzlQSnZscEl6ZWdidkZLYVFsYnc3?= =?utf-8?B?NU5jU0d5L1dGRzNrVFZQVmRwdVZsZmtNR1FWb1VvdW5NL0phZmtmckZvejR3?= =?utf-8?B?enUvT1BiZUp1OUh5UHYxV1FUVmtmUmlXaVR1WFowbllXSDlvYXFBNmxLUUJu?= =?utf-8?B?M1hONWMreU56TlBNaDl1NGdISDlNaEdLTTh0S1U0dWJ1c1ZKSW9udHczaFBD?= =?utf-8?B?QXdFNndIWmJRNC84R0JDcXhVMC9ud3UrYkJPTDgvUkxDdzFESGdkNzFTamNx?= =?utf-8?B?bjNLTjlTMlQwZHlFTlpkdHBGMytXY1RQTHlGaVZwamFYdTVlVzBwRDdWakF0?= =?utf-8?B?TDZnN3FCdjIyZDcxZFhRendYWEFGQ2NhSkVuNVZYcUZrSzZ3dTZnaTNYUTFm?= =?utf-8?B?eFZCcDlYSSsxZjBtNGpoT0gyTU9SeHBVWVp0NzA5ZGRNdGlUQ3JYdUR6Q0l6?= =?utf-8?B?MFV6MEEvVzl3Rm5GcjVhekcxdU9MNG45YllwZkxqbGFNaGUwTXlGaFZweXNx?= =?utf-8?B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acGRKYUxT?= =?utf-8?B?aTZkLy9SR0w2RG1zMG12REJ0N0JVajQ1NGxTZk10RkNKdklxcnVLeEFXcXlj?= =?utf-8?B?TWdsSmZoTUZ4NFFHMGQ2SjE2VWlzVHljeE45WmJMRjFXSEJIMmlySUFER0k3?= =?utf-8?B?UG8wcHNyVkZXVXJzYXZ6Nk9VbUZ3RjM0U2lFQ3liU2NpTmdhaDZCUk4wdWtt?= =?utf-8?B?TG85TkxLZEM0THMyUDNnV3FLQTg2dDJndUFBanlNQVdrdHBYdDlWTE5ZOStK?= =?utf-8?B?ZGJmZ2xiTUxBWng3ZWp3Qk1WYW5zcloxQ1NUUjZQMUFzVTFCSWZZaDV6Qisr?= =?utf-8?B?UTgrL3hCY0dXRWtYak1EaUttTjN1Z3RLdlZWV3EvOHJRVGxCSU96WU81L3hv?= =?utf-8?B?MTBkbE5uY0s2UXpKWkVPNlBldFRMMzBJZ0VCU3BVcmpFdTZQZXljd21jdXhJ?= =?utf-8?B?TzJ3OXNBRitsc2ZpK3BQd1dpSzhmRjBnQW12WDBaSG9Na0dnMW40ZEVIMWNZ?= =?utf-8?Q?DkBsMPy/hYv4NCW0BRxywlJCB?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd72cd4a-9c27-46f4-171c-08dc41da99dc X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Mar 2024 14:50:32.1361 (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: czccUNPQAFmbfCYpgMnzTXRzJ6OJOOZ5eHhLLu5Lnzm+8grI8F2rEoJqep8bIfwwBQbgwXFJEn3lRm5pZZaxXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4341 On 3/8/24 18:33, Dionna Amalie Glaze wrote: > On Fri, Mar 8, 2024 at 10:36 AM Tom Lendacky wrote: >> >> During early boot phases, check for the presence of an SVSM when running >> as an SEV-SNP guest. >> >> An SVSM is present if the 64-bit value at offset 0x148 into the secrets >> page is non-zero. If an SVSM is present, save the SVSM Calling Area >> address (CAA), located at offset 0x150 into the secrets page, and set >> the VMPL level of the guest, which should be non-zero, to indicate the >> presence of an SVSM. >> >> Signed-off-by: Tom Lendacky >> --- >> arch/x86/boot/compressed/sev.c | 35 ++++++++--------- >> arch/x86/include/asm/sev-common.h | 4 ++ >> arch/x86/include/asm/sev.h | 25 +++++++++++- >> arch/x86/kernel/sev-shared.c | 64 +++++++++++++++++++++++++++++++ >> arch/x86/kernel/sev.c | 16 ++++++++ >> 5 files changed, 125 insertions(+), 19 deletions(-) >> >> + >> +/* >> + * Maintain the GPA of the SVSM Calling Area (CA) in order to utilize the SVSM >> + * services needed when not runnuing in VMPL0. > > running* > > otherwise lgtm Will fix. Thanks, Tom >