Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2467961lqo; Mon, 20 May 2024 06:58:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDl5c5Vkf/To7ZCJJ9seMSO2q3V2Chz3E3brwA6KXpSRJwfrEslCPXY/H9vOohU86JfdcAq0a5OcZ9QHUDv0ouukHZn5tCVS30AJPQQw== X-Google-Smtp-Source: AGHT+IHMi51MoD8lqVEmDCmB2OdixYyjLTU4P4rIE3/k/K4517YrN1RS5npU6DvZu7p8tVC8uizu X-Received: by 2002:a05:6358:724d:b0:192:6a66:63fa with SMTP id e5c5f4694b2df-193bb3fc727mr3401220455d.5.1716213483039; Mon, 20 May 2024 06:58:03 -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 41be03b00d2f7-634103f6ec7si2741529a12.367.2024.05.20.06.58.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 06:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183811-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=JaJizE9T; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-183811-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183811-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 A009528304F for ; Mon, 20 May 2024 13:58:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5278136674; Mon, 20 May 2024 13:57:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="JaJizE9T" Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2051.outbound.protection.outlook.com [40.107.95.51]) (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 35920135A6B for ; Mon, 20 May 2024 13:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716213470; cv=fail; b=eUhUJIAPo85wR713UzeyBNawM1ma7pQixq3YSwQJOqrjS31EVVsPhc33ILrLL50UCjdQb0pUB86o2to6EKlVJcjgkd9oyCNhfW9diUUDa/ErlxsEmlw8d77TTucVzWxrjzyVrRnmEXmv4jxxPO8X++gJ0Dg0nuY31/QJQO0WgGA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716213470; c=relaxed/simple; bh=Mj6cOzSqHvPra7g+Emazt3R98Xfd2pHoU/7IL+hJiiY=; h=Message-ID:Date:To:Cc:References:From:Subject:In-Reply-To: Content-Type:MIME-Version; b=SXGFudF6ayeFNzaVWvlm7z+yDV0aFlDyORUD5staCVhTVx9YNkbaprUakn1QhhmD/phsJFfxQ8BmFt+0d0KcbbaKeVFfRvVXeC2yUfk6M/5wfigEIH/4iDm1EERQjfk1efmWwe352Q0TDiZxKBm+8B8BMYn3tjhCemasGvoUsfU= 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=JaJizE9T; arc=fail smtp.client-ip=40.107.95.51 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=muelqyRuKr8tZWfmTUWARvayVcQYm7QArXhmM7+A2wyz6/Egr8SSyIW+Z6MlfoSC78ZPaqoDCXyeq0sqzqG80fLXJ9AChnA+XbYMkD+RdcD06cXi6xzi4h7gzkTfcGhpBuh6X4MCs6sYg/QWM73pWazhcNj1DBc/hFiDr68zdOe6GDSqIijBoh/ygTR3v102fx9Tca20d2tkzSARqM+ZZ6Kt/EdgP2lkwGKvTEwt5j9V40EK2lw/tg2L9GHYf4DM3EgOhHik+dzLmgi9WusbHrYmTTSKQOgXCj3+AQS7j4i+C9MhVFNGRNihqGHqtcFV8ATE+L6YFnzeGQdKtoEqlg== 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=t0FFZ0t27/ssnqVjVUm8RKiTC58eC0Cn6C9xCl0K5Cg=; b=lyi3nFrbVrGsZoEJ1pbF/nzIicSaTNA9nMHRCN6shfmfVzq6fAi4s9OxU5Hv/PGzPJdHgRiQobPM4ZEgHLjNXAOhuLgnaerp+pOmJ9/ljb2I5GaOccyk90FRZawq94dgK4rK8zI2cTdnOFZMyoytnVR083z3N+jOAvPv700ohQr+sbMFLJ6p1LxMD3XOlRN5Lz7aovnWVhPV1nSzjE0+NwAvOTffi674lJotsJEmsjX2/Z4TvXdzIxLbelqr9o49zMlZ118OGPZGabjKjRnu34vGhoMNmQdM8/2XCtWl7OfrodOcEwF/41co0kfRyrd4YcJ4J56W+u26J8qT/jHo3w== 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=t0FFZ0t27/ssnqVjVUm8RKiTC58eC0Cn6C9xCl0K5Cg=; b=JaJizE9TtoABkItEMhHOcAGQ70riR6BgcKMsQF4mWLWASn06eBSjpDBiKYZlxGNgG3EDMeaz5i5HIjbl/+o20VwLN8rSzof1ty3Jr4RelGvDcjEJuARs2TYBs4jPGRDsZU04scHB2kyxIvEGuMKn/9b2Qp85M1e57aKZKnn+62k= 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 CH3PR12MB8187.namprd12.prod.outlook.com (2603:10b6:610:125::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Mon, 20 May 2024 13:57:46 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52%7]) with mapi id 15.20.7587.030; Mon, 20 May 2024 13:57:46 +0000 Message-ID: Date: Mon, 20 May 2024 08:57:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-coco@lists.linux.dev, svsm-devel@coconut-svsm.dev, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Dan Williams , Michael Roth , Ashish Kalra References: <6cf54cac47f212f4c2b59b123855d8c183989022.1713974291.git.thomas.lendacky@amd.com> <20240502093520.GRZjNeWLXU5j2UMOAM@fat_crate.local> <66928741-aa5c-4bbb-9155-dc3a0609c50a@amd.com> <20240517155858.GDZkd-wkWmYegos-eT@fat_crate.local> From: Tom Lendacky Subject: Re: [PATCH v4 04/15] x86/sev: Check for the presence of an SVSM in the SNP Secrets page In-Reply-To: <20240517155858.GDZkd-wkWmYegos-eT@fat_crate.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DM6PR18CA0027.namprd18.prod.outlook.com (2603:10b6:5:15b::40) 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_|CH3PR12MB8187:EE_ X-MS-Office365-Filtering-Correlation-Id: f434e58c-ae14-4ec2-3233-08dc78d4d38c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|366007|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?QWFzMHhOOGZFc21UR3NYVHZZQkRrTm95ME9wQjFRN1hMeEZVUEZLM294M0J4?= =?utf-8?B?eUVXZm04eVlsalpZNmh6SldrUi90S2xFc0hCcExzRFJ5MllwU3Z4ekpHL0w2?= =?utf-8?B?ZEZTdXJMV0U3VG9qaGlYMW41TlBqVmhrWUI3aWttbllJUjJJWkhBS1FwK2Nz?= =?utf-8?B?SkFDTmZwNWJ4aXVBU2ZiUHh3aGhzRi9aRXJpVG5YZE9nclB4cTBkc1RrQjNo?= =?utf-8?B?THR4S0drMEhrYmNURVF3LzBhVjVSWUhHbDVrOGtVYXlKRTIwYU9BTFMrQnY3?= =?utf-8?B?L3g2K2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5uQ3BkSFFXaW83aHpO?= =?utf-8?B?Z0ZIQkwrVVlRdUNWejR6MWxxRVRoRnhjYzN1eXNOOU1NK2cwL1UxVDdHb0Yx?= =?utf-8?B?a3hyK1F6aTJMNXd1YVlrRy91czU1SE0rUEdHY3J1ZmZsekRFWXpuUHlzb1hN?= =?utf-8?B?aXNkZ2Z1ZDFGUUxwekRKNmRDbGZ5UjZKaFNmakZuTGVHRDYzWGxnZ1ZXUVFj?= =?utf-8?B?N29QM01qRkVOU2VuK3BZOXJ6S2xpaFB2bmVLckpIdXJoTkowbFlabXFlMmFo?= =?utf-8?B?WWdXOC9XdFEyd2NVcGt1cklUcE1lWU1vNjNia29SUTZtckVKVDJBdFZ6MDM1?= =?utf-8?B?L2xVMllTRFQyT1gydjB0bmd3OGdDQ1EzVDdjdVE0S2h2RnA0VHRlTitpV0JG?= =?utf-8?B?SHJqZWd1ZXNwOXIvK3RGUy9oRzIvQXhqUk1vdHVaTTNyUndpWlZsWVkrQVJL?= =?utf-8?B?UEdkc3d4ZHIvWjhFMllNM1BCUTBibFZZbEFYTmJZVnllVzBKZ1FrZ0pnWVhi?= =?utf-8?B?NHFUc3RLVUhWbmtteXBGWUxiVUFjVTRBR2pMR1h0dW5UU2pzQ1YxOUhnPT0=?= 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)(1800799015)(7416005)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YmVwNW4ySXRsUGQzMzRwd2tvUWJjdnJ4Z2FTOXVsbE9rWEIxKytmOTN5M0lZ?= =?utf-8?B?WUJ6Nm9LZ2gwa0E2bmpPYWthSmV5OG5BVjR6Uy9ydk5Ub09rY2NqbmJlUFpI?= =?utf-8?B?cXlINGR3c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VtMEpuaEVXcFVQSWErNXRR?= =?utf-8?B?TWNtOGpQNUNNc0pTM25kSWJnVFFWZzg2ajRsZTByUDlXQ0duQVEwcDFPeVYx?= =?utf-8?B?WHQ0MmJVYVMxYzBDZENFR1BkTkthU2ZPaHBHMjU2VnhHWWNVSGtWcGhXWXRU?= =?utf-8?B?Q3hNa2lBTC93d2M1ODg2eXRoTjZYTGtHWjBJaVBZbEtzb0J4YlJ6Q242V3Vr?= =?utf-8?Q?IjH9bkh5IF3QR4zZGvFDI9qFN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f434e58c-ae14-4ec2-3233-08dc78d4d38c X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 13:57:45.9340 (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: rneZGh8mAk8oMPb0ceAcAflYfuLS4/bA/MLoPOzEnuek0iA4xHbKPPqYKrQaHWFaRcsUBcPR9Mz6lS6wQiQYXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8187 On 5/17/24 10:58, Borislav Petkov wrote: > On Thu, May 02, 2024 at 10:29:02AM -0500, Tom Lendacky wrote: >> PAGE_ALIGNED and IS_ALIGNED are from two separate header files (mm.h and >> align.h) which seems like a lot of extra changes for just one check. > > No, pls put them in a single shared/mm.h header. And no, those are not > a lot of extra changes - those are changes which are moving the code in > the right direction and we do them sooner rather than later, otherwise > they'd pile up and we'll never be able to find time to do them - sev.c > movement attempt case-in-point. So this will be a new shared directory in the top level include directory (as PAGE_ALIGNED is defined in include/linux/mm.h), not just in the arch/x86/include directory like the others (io.h, msr.h and tdx.h). Is that what you want? Thanks, Tom > >> Not sure I agree. I'd prefer to keep the comment here because it is >> specific to this rmpadjust() call. See below. > > Just don't replicate some versions of the same comment all over the > place. Do one big comment which explains which RMPADJUST has to do with > VMPL levels - perhaps over the insn - and then refer to it from the > other places after adding the specific explanations for them. > >> Right. Not sure about the "cannot", more like "must not." The specification >> states that the guest should run at a VMPL other than 0. If an SVSM starts >> the guest at VMPL0, then the SVSM would not be protected from guest. > > Yeah, well, you do terminate the guest if it is running at VMPL 0 *in* > the presence of a SVSM so it is a "must not". Ok. >