Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp345309rdb; Thu, 5 Oct 2023 07:38:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMilxPxINm+1+P/qbWfJuosoQUHU0oZmGO/eaGSixiJkELs4+Q26BiPihvg+GZZbnJ8gu2 X-Received: by 2002:a05:6358:7f15:b0:143:786b:3de5 with SMTP id p21-20020a0563587f1500b00143786b3de5mr5522835rwn.9.1696516716908; Thu, 05 Oct 2023 07:38:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696516716; cv=pass; d=google.com; s=arc-20160816; b=HeZNFK4EDMrOsZErE+tnhLY8GcAzMZPDSOkRjGMhEyxuhkKC18+IsU1PH4OVkWrSF7 AWbcrx4m8YZUJKSzFChOl360S+mHd1ezvmHEPghxNZT+7Lom+PKBJXAIELWnaXQWJeFK 50/1JQVPu1LAzvtr7/vxzbQX98CH5RGFyYPC2+fzbbECK0xXOCHeKklUpWd6i1mqcP7T QAc168fRdDn5IpyutG4/41k8pkjkbXbj2f4NQoYl5hLL92lCoYLSUrsWvsw+Nxj8uSG6 nJQzAlihJNxIziSqOmcfEl1/JM/jkSIJPwLNdQnVv5GuR70s04M1KYpjXWigEqrvw0FC llVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject:reply-to :user-agent:date:message-id:dkim-signature; bh=LMJzp+HZUPxWM0zXkftHZC/z5UlSKoVBqwTFwBqBLdQ=; fh=fvtSHXmFklOa86PZFaYH6EIvwz1uN37cIcGvRjQvT9s=; b=gpURybtHYnrNvjnRbB/xz0MHUUZ3uCUau9SFK0u/BJ8FQZdwSs3cgtkuzzEVabr4/b f5mRmfIW1xycJS5vwtBwlnj18c1YPH2SdfqX1pNRIEerwexzoywTMLxsEK1dpZxrE2oB EfQvM8o2ogHhdiawLSnVcF+8Gnv5nodHV/+b4m6N1kO7LZphaGiRSvQgQp39jLTNX+/g QRncltmNtSwIhiPFngrEnkDFE0hO5zg/mcuQdeI9iRmpZe6I+RJjrfPJSqqEV5US+2r+ VVprRF5jxfyNVbbe8LcswGsllo2Aw9D6ZxxBWHdlbv29IJrds2tvw5zQqDFzvMbnBctB uDww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pOpZZeg4; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t5-20020a056a0021c500b00690f49d9e44si1505156pfj.400.2023.10.05.07.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pOpZZeg4; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id ABB2A85C6A94; Thu, 5 Oct 2023 07:38:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235311AbjJEOiS (ORCPT + 99 others); Thu, 5 Oct 2023 10:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235587AbjJEOfp (ORCPT ); Thu, 5 Oct 2023 10:35:45 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2065.outbound.protection.outlook.com [40.107.220.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4EFB11AE0 for ; Thu, 5 Oct 2023 06:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bUz9xavkGZ1A+Wj3r21ows8udAq4oe9YfwDpMM6e96tmRBlZfU8rxLBdCRAiU8MnhHiiQ5ed/Ke/6hGYWj7t2Ezjsn8eOCh+nnOr533EBs2XoFsBoTXT5zTHnJJIaFDWSm9lcuJd1TbTduz4bWgkbIpO9b6z1H8yK8U/cp1owsMrFa4Lo+1VoJ04CH1n9y0AHYVkXV8GD2n5lIQnQbA+fILQTw1Eqn/slkRk7WncXDa4MObKrx3wJ4UgYYzu+9nM8Oz98SzwjDvPtHS0q33uwtSeLlNNws7H80gi1F+46bKyuyDA4ukj3bWu05yM4sDWfS5lKcwsgb8Jt0MJn8kJ6w== 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=LMJzp+HZUPxWM0zXkftHZC/z5UlSKoVBqwTFwBqBLdQ=; b=e+XUaV1g8zDfnUfz2Ewj4R9x7FwxgQ4yVTV28ll/xzOwiU2FcTD2tAOSwjyIMO5wFo5VQPZmpj2C5DzTyk8EXuo6GjWszQqd6uVA2VekCq3omFkRn/ftmGlSBAWAjRzuN9kuNnTJDGdDUZw99EZKRpL8TUs2RZy6fuCjrMO8okMCJwiZYOMdVGchrN36QrgmcPXboEGf+s3TpZ0K4r9Vcsl7moQLRCJjIwgvM7JLjhejsj+8IVs61zgEtcdjs7IN8O4Kv9D7iBsIpkhaCLqKlvIEMFn6xW0FsIM9XhCb64Zw+kNM/QiYTdP0vFzgw2fEUY4SCLmRdy6PT3427xALOg== 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=LMJzp+HZUPxWM0zXkftHZC/z5UlSKoVBqwTFwBqBLdQ=; b=pOpZZeg4Vd4HX6BcdvFcefE+82FrkxDSda2CoSHddoeekcMdtinrsRSlkKwESodmRfyUHtiLdY9P8koiJ+CjIKva08ftA/VQpvNyYamAUy1f3l7CMd6FFRW2XPUGwRbeS4N8T3wLRp8MmIiir2CTeWSoJnBGeqYoJXToO6cNI/4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DS7PR12MB6309.namprd12.prod.outlook.com (2603:10b6:8:96::19) by IA1PR12MB7712.namprd12.prod.outlook.com (2603:10b6:208:420::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.29; Thu, 5 Oct 2023 13:57:58 +0000 Received: from DS7PR12MB6309.namprd12.prod.outlook.com ([fe80::93cc:c27:4af6:b78c]) by DS7PR12MB6309.namprd12.prod.outlook.com ([fe80::93cc:c27:4af6:b78c%2]) with mapi id 15.20.6838.033; Thu, 5 Oct 2023 13:57:58 +0000 Message-ID: <1f740bdd-666b-4686-8d04-1c28da9917bd@amd.com> Date: Thu, 5 Oct 2023 19:27:43 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Reply-To: nikunj@amd.com Subject: Re: [PATCH v4 00/14] Add Secure TSC support for SNP guests To: Borislav Petkov Cc: thomas.lendacky@amd.com, x86@kernel.org, dionnaglaze@google.com, pgonda@google.com, seanjc@google.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org References: <20230814055222.1056404-1-nikunj@amd.com> <9a6af215-e696-5091-69fa-1cbebe772471@amd.com> <20231004070100.GAZR0NrFSIDKPSQIjA@fat_crate.local> Content-Language: en-US From: "Nikunj A. Dadhania" In-Reply-To: <20231004070100.GAZR0NrFSIDKPSQIjA@fat_crate.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MA1PR01CA0180.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:d::18) To DS7PR12MB6309.namprd12.prod.outlook.com (2603:10b6:8:96::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB6309:EE_|IA1PR12MB7712:EE_ X-MS-Office365-Filtering-Correlation-Id: 24da4624-0277-4df4-d07d-08dbc5ab14e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XDFhjQUYTFaoiI11DZY9rvxqZDkAMhlwuOktjXVsXxbFsWGWOCmupmI88HrMIwYw2GIqJgDC7wvig70fbXW+N6J6gaug5rXiS7eFnSt8qHUPT0hq1kVDycIOLjD0Om2oWQkubYStm+x5Z+qO38KYfMvN3cQCf6Ohulz8FCRihPxhnKY+BpNSLqFNyG7azVkk6SE5nRqH4LhgQjYj87t2MODtn//U+xiz9b6b+4bEe5v2H/gPof1t6at+UEM0fqH1eNqPvz1WSCIi9OI2Ix+NZTWU71x4KET/UYB7FZAL4W65WBAFT/nDPJZZqzIclF+CJADCi56E2+e7ObIwKghlxCLchRqILiT+X1GI6DjIa+wS4Ec24p+Vh6+lGzoKxKJoJARAIj+AslDUIgVuAwyOxUKcW5xU3B7F+Zc9d2B1lwOoDiKSSGSPZ3QXvF/OyP86tmXRda6VqnuGJg8hQvykiMiGIzYIQJen7vORbAU8509kh1tyPOdk/4+1avbuzlNmvbthX2omOV9ZvRqqIVNcTjmC4mctYxUYesbIpIZ+Fr7zTAL8MIrrnNYZIF5CD+UWlEDpyv/vL0WPmt8dYQA1uYmttKxxTgfFK4QtvYn1khY/88nMY9QVZ4Up1vEBA4N69iDJVj/Y3SHWFZkRDMVlPA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB6309.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(376002)(136003)(396003)(346002)(230922051799003)(451199024)(1800799009)(186009)(64100799003)(36756003)(31686004)(31696002)(53546011)(26005)(966005)(2616005)(2906002)(6506007)(6666004)(478600001)(83380400001)(3450700001)(6512007)(6486002)(8936002)(8676002)(66476007)(4326008)(6916009)(316002)(38100700002)(5660300002)(66556008)(41300700001)(66946007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SmFWN3M3TktQZGlyVmJEMkUrOEpnZWdKTkxDdEpraHd6cktlY0NLdVV6M2o0?= =?utf-8?B?Smh5N3dBb0M4d3laV0Q1MkNpNWFHMC9yZVR1OHBHYnZKWXpQWEdxT1FGUzFR?= =?utf-8?B?Z25QcWFuWHZjMVNFbW9YUjdjempwbUUxaTR6VHJrV2UzU3JoYWFxL1UzSGox?= =?utf-8?B?NTR2QUJ5em96RW5EejNaWndYdDgxOU1DQ2dDQlNjR29JWmtGbU95VEZJVm5M?= =?utf-8?B?dzJWdTFuWnpIRmRvZ3FqdmRqazd6ajNhST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?B?YS82RFpxM09WcE96WWxPRE03djRVYlVNbXpGc0VXeTNJejVzT0FjNS9GYzdI?= =?utf-8?Q?hczBqEA40UUm7vCUV6f+InDuU?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24da4624-0277-4df4-d07d-08dbc5ab14e9 X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB6309.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 13:57:58.7455 (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: z4W611bDwVXP7qfoLs8PeooN3wiHGO5cW4BoBJEiFLKaX/Cti5ubJ6PlHGhf2RDbB0Hx6rRdU3EW/UVufjDkPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7712 X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:38:35 -0700 (PDT) On 10/4/2023 12:31 PM, Borislav Petkov wrote: > On Wed, Oct 04, 2023 at 11:05:14AM +0530, Nikunj A. Dadhania wrote: >> On 8/28/2023 9:17 AM, Nikunj A. Dadhania wrote: >>> On 8/14/2023 11:22 AM, Nikunj A Dadhania wrote: >>>> Secure TSC allows guests to securely use RDTSC/RDTSCP instructions as the >>>> parameters being used cannot be changed by hypervisor once the guest is >>>> launched. More details in the AMD64 APM Vol 2, Section "Secure TSC". >>>> >> ... >>>> >>>> Changelog: >>>> ---------- >>>> v4: >>>> * Drop handle_guest_request() and handle_guest_request_ext() >>>> * Drop NULL check for key >>>> * Corrected commit subject >>>> * Added Reviewed-by from Tom >>> >>> A gentle reminder. >> >> >> Ping ? > > Pong. > > How about you find other SEV patches on LKML which are waiting for > review and review them, while waiting for yours? That is a good idea and I wasn't aware that this may work as a good bribe [1] :-) Regards, Nikunj [1] https://lore.kernel.org/all/20230816081942.GBZNyGnk%2FK+nDuBzsC@fat_crate.local/