Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp542264lqb; Wed, 29 May 2024 03:44:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX522mhcuK8qd0Dm47iyA9Lx2MHntulOQJKCVRkF1r2wJboxSINpHbOBzwtoyvoWLo9wYjOF6lftTi4HqbBLnuZGcQ2+O+KrCZAR1JI5A== X-Google-Smtp-Source: AGHT+IFJShMgxCLCNUxKVotFNPR8uC14YxmRWKkULr7u7cC5WSVT9IK1yJNqx6Tloq+dxk3JYw2q X-Received: by 2002:a9d:68d4:0:b0:6f1:2309:c6d5 with SMTP id 46e09a7af769-6f8d0a56f32mr15266087a34.7.1716979467932; Wed, 29 May 2024 03:44:27 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822ae581e0si8131788a12.820.2024.05.29.03.44.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 03:44:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=tQ4XDHDq; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-193971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193971-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DFBE9B23484 for ; Wed, 29 May 2024 10:43:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68F9217B51D; Wed, 29 May 2024 10:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="tQ4XDHDq" Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2052.outbound.protection.outlook.com [40.107.237.52]) (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 8FBB2167DB1; Wed, 29 May 2024 10:43:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.52 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716979425; cv=fail; b=T+IWuh25nD9zUDCSJ9eWMzpNGLIVgY19ESsmYT6eMhDy1qa6R4/BXKVsNTqaHkMO4yv6YLiL615Uo+6Cs0ltIzKSq38FMELM4l4IJWJZYw/yQ918WAgYcild9j/3sxZxDMHEKZEAZnuxsDJHtYag0dI+n5SuSk07Tjuqfit9K6Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716979425; c=relaxed/simple; bh=szbP6760RCMriJqwwwfoVzrDamuqeRr4c5J7eATwCO8=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=ESE3pjWCzHa/7lNfmaSBq7DIl+FYgDG1HPZEdbRmW8F35L0cHYANqPyrr7PUKTxe5VsgWCnFM31zq6B0IAM0V7gZ1LL+fhz9syUVKSwhZ+hGs/03xHLBWYVy90I3+D0L5J9AfNTkAFiCGqhGO6gMXVLmOHYUMO2GTPUAX2t2mIg= 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=tQ4XDHDq; arc=fail smtp.client-ip=40.107.237.52 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=kyBFKbRquvEXsAE2KhTzrMeUuxKu+BFl7NHscNyisuWM8ZlLyKgjXhK5xfeA6Ahyunxpt4eNsjYegzXXBWLVee71ifn8UdAT95Cfh1SbihEcnxQWoqyYT1GE7WV7mgWRKvbx2Md9XwneFQeV/Axq3rUN7f76ZdSPSi7eo8S+CnUhRUKcU/FfdWsU+iZWA/Uqr8r2bwbAfzYRXDPzztu4jc0FCgmZeKp0O5/w31n63fAllzNiSn1x42+i940JIbNrRP7dRfveDtgGtZkqCuusR0EsXMDPUTT+p70c1Ze7JZweYUvpWR5ClzGne2nLDtUN1THNSyD3PLfqhDUcjpUB0w== 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=rGVG/e7XNPWNqTHy3vXW+0JjecjNBrau/CgDJdaVkLc=; b=eZ9LPC8uV7OWGJAwha6RLlYWD3gwBbdCpIHHxk3WfGGujZhrbpuqRkbUw3dhecBZ6XW81NpHVTCEINToXRq2oRIBY7zXrNxaeU3R5dD8kFs2YWiFnWhGklHmxKotx7JQaUxWEsR/HRCuifvSLXUu6bqf+napwpZ9Ee/2COdjxKhmo1dQJhjV2ffXEPbMMivz7Kho2APQI7yBmUjKlBbwhBtcyGq32qBbK5OslJrfTco4p9LMMKVQhWKAZoLz2zqxc3gfNfKWt4KjfFAzg8WJjIhwbXvGN8VLzOgn/klYoSTWA6cvVqhX17t2Rqpx03DkLUQptSn2Q1NImjHO3IYW6Q== 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=rGVG/e7XNPWNqTHy3vXW+0JjecjNBrau/CgDJdaVkLc=; b=tQ4XDHDqKo3FPdXaH6T+7G6/Y5TS+X5bio5BcCjOxnY5m+cDZVG5+s7dK5O0pBbWjWbXaKVyUrMbu+Swz7zhWELTjzJ+h6wee2Da14oKLQqE3gJV2L4tKbRbEfHr9V6R9rY+ZntfoTyoBwcv8ydVit17RlVVD6+tuIkDUiEgtmw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) by SJ2PR12MB7992.namprd12.prod.outlook.com (2603:10b6:a03:4c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29; Wed, 29 May 2024 10:43:40 +0000 Received: from PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39]) by PH7PR12MB6588.namprd12.prod.outlook.com ([fe80::5e9c:4117:b5e0:cf39%6]) with mapi id 15.20.7611.025; Wed, 29 May 2024 10:43:39 +0000 Message-ID: <5c49ebd5-26ae-4a06-85e8-9f90777a904b@amd.com> Date: Wed, 29 May 2024 16:13:28 +0530 User-Agent: Mozilla Thunderbird From: Ravi Bangoria Subject: Re: [PATCH v3 2/3] KVM: SEV-ES: Disallow SEV-ES guests when X86_FEATURE_LBRV is absent To: Paolo Bonzini , seanjc@google.com, nikunj.dadhania@amd.com Cc: thomas.lendacky@amd.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, michael.roth@amd.com, pankaj.gupta@amd.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, santosh.shukla@amd.com, ravi.bangoria@amd.com References: <20240523121828.808-1-ravi.bangoria@amd.com> <20240523121828.808-3-ravi.bangoria@amd.com> <9626063d-40ed-4caa-8ac5-ba2e88b6e398@redhat.com> Content-Language: en-US In-Reply-To: <9626063d-40ed-4caa-8ac5-ba2e88b6e398@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0037.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:98::16) To PH7PR12MB6588.namprd12.prod.outlook.com (2603:10b6:510:210::10) 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: PH7PR12MB6588:EE_|SJ2PR12MB7992:EE_ X-MS-Office365-Filtering-Correlation-Id: a317f818-ec2d-4f17-8ae1-08dc7fcc338f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015|7416005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?WS9ENlFlZklnWlYyTmludzQvWm9QcDdZT3RwdFFzU0xCTUM3NitFQlB1QVEy?= =?utf-8?B?aEdpbUtncVRGR04xOW1jU3dTaVgzbFB0bWhWUlJBblNsNDl1MnRBUFRnQkV3?= =?utf-8?B?eVk1bG1jTkdPRlZxVUlWYU4yb3JpbnZIWXZ4bG5DSFBPdkIzdTBsZGhDcmdB?= =?utf-8?B?dUROYXEyOUFnWG44VC9lelFtMmx4Q2w1TWt5ZFluVkNGY01EdjZza0g0MzRo?= =?utf-8?B?YXlDSjE5QTFady9XU1Zqc1JhRFI5blNiVmsxOFlMWG9mQWIzRkwvVU1oaE45?= =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bFlWYjlvdTMxM0lD?= =?utf-8?B?L3FaejVhYjRjNkdiOFUwc0xuM0N3NVVsaFIwWTJPZzJGYk4wZk1MUUZiQXdK?= =?utf-8?B?Q1ZhZ01LUzhVa3F5alJUMW9QdnFFNHZjaU1KVStlZnJMdmJFUHpNcWtPd2ZU?= =?utf-8?B?NnNjRWFWRmZuSEY1ZWswZERBTTRyR2RES2N1cGdFRGRZZlJvcFhWcWdsVmY4?= =?utf-8?B?a3lpcUpXT0tNc2doVzRQdXhqM2d0QmNrc3hZSjE4eXVhSDN2THJEL2tnOThp?= =?utf-8?B?d1FWMEdPVDNNSWVZa3BPNWpUKzBBUkhFSTcrTjlPOHlEVnFoS2FsbVhma3ph?= =?utf-8?B?Vzc3elYvbkdaMVpoVWN3bVduc1l3OTV4NGk4RkdVN0JoZjJNQU01cTU5dC9R?= =?utf-8?B?WnY2L21FdDA5d1pyWTlvT1VqVktiNXRIR0l5dkpZSlhIY2g0NWxMd0tlZzBH?= =?utf-8?B?V0VZd3FIK0J0eG1lcXdBOFJpTWtGSnJmYmpmMnhWTFQ2RGJ1UE1uN2d4cE5F?= =?utf-8?B?L04rR09aRm1NRFdNK1RVdXBMNFNjU21Jd0JrZFhhK3ZLL2tMT2JxYlJ3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6588.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U0k5Qk4vSG92MjkyYWJCL1A0SXJBQ1RFY0Q0L1JVYmExM2VFNU9JNkZGN09M?= =?utf-8?B?QWsxcnlJd0xlOEZNRnhneTg0SWNTOFgxOGs3WERCajhHb3M0WEpuRkNGelJB?= =?utf-8?B?REZ2U2NzVHg5aHFCMWRnQk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0pYTGl0?= =?utf-8?B?eEN4QXJHTHZ5Sjd4dmFmMDBYbk92T1d2SGovaUg2ZVVhYjdlTkRRd0poU1h3?= =?utf-8?B?cEtKZ0VvZ0VBWTdJR09SdjlyYU9QclVxN3cvUS8zVUx5VCt6SitWdG56NkFY?= =?utf-8?B?WDZRYm56cWprZ2hxdXl6UlljZnNNQTBvaTlyTnY0S052WWRXdGxPQW84QUg5?= =?utf-8?Q?PhoLY1CtEyvShMJno8wwVotoF?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a317f818-ec2d-4f17-8ae1-08dc7fcc338f X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6588.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 10:43:39.8621 (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: n83ENCok3uA/Z3NHB4QYdMI0ldiE9SfcUqpb+Kx0cF8uzgcWei7bgpP4ODyZ+9qvtfVtMS3CuNcyS6WVlKm5LQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7992 On 5/28/2024 10:03 PM, Paolo Bonzini wrote: > On 5/23/24 14:18, Ravi Bangoria wrote: >> diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c >> index 489b0183f37d..dcb5eb00a4f5 100644 >> --- a/arch/x86/kvm/svm/svm.c >> +++ b/arch/x86/kvm/svm/svm.c >> @@ -5308,11 +5308,17 @@ static __init int svm_hardware_setup(void) >>         nrips = nrips && boot_cpu_has(X86_FEATURE_NRIPS); >>   +    if (lbrv) { >> +        if (!boot_cpu_has(X86_FEATURE_LBRV)) >> +            lbrv = false; >> +        else >> +            pr_info("LBR virtualization supported\n"); >> +    } >>       /* >>        * Note, SEV setup consumes npt_enabled and enable_mmio_caching (which >>        * may be modified by svm_adjust_mmio_mask()), as well as nrips. >>        */ > > Since it consumes nrips, just make lbrv non-static: Sure. Thanks, Ravi