Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp19374lqo; Wed, 15 May 2024 19:11:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5G3wlvcQvgvnF0uAhinU8GK06UAcNwbFpmhdIev44Xuhs5GIQnMJpbwV3MuVVW1zLWw+O7B55HTV7MD9AoO+Ynj918JGBGChRBT2oyw== X-Google-Smtp-Source: AGHT+IEMvnBASY6TZIKj3Wc4tv8vrvTonYI2i3KhYL8W8n6ukN+QowDSqnI4PfO1goECMCpjnUMF X-Received: by 2002:a50:8a93:0:b0:574:eb26:743 with SMTP id 4fb4d7f45d1cf-574eb2607b1mr5311526a12.10.1715825471604; Wed, 15 May 2024 19:11:11 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733bec07cdsi8413323a12.159.2024.05.15.19.11.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 19:11:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V1wPb590; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-180562-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 28D511F2270A for ; Thu, 16 May 2024 02:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5EA01C3D; Thu, 16 May 2024 02:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="V1wPb590" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 382A71366; Thu, 16 May 2024 02:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715825459; cv=fail; b=ewFRgoCXfJKVLbGWnwvDeWDxk+AsAQ11oYK77j6UenLPa8xSeOn2hZznl3/JBwodlzcy/iPtKVIkAcJy6iAiy8O3Kxzhb2L3wQz3S3l8uHGAGWkRMtZ4AzzCxQHA0axVHLOJZBcC+6i4XQLkwfrg69hzvRsRoNStmK5z2dItsKw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715825459; c=relaxed/simple; bh=8iHCbXRXGFWqNv3qlJY8NSdQ6gsk6JuoC+GkuQj5wt4=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=S3U9a6fzEqY96oaGDQFC/5DJI6NOBCfn/qEHYKRlDpC2MEPlinOTlZmQPFGAjxhV2WbuC7io+9cz0p5bNXoORWl7+FV4DzjxJc5xMzOhhKcNy5PKPXvcbUryp2I/5CoubG3jTrCJrGCv1cdBNB6+tWa4Oh8AHRv/+coIHssMZVg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=V1wPb590; arc=fail smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715825458; x=1747361458; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=8iHCbXRXGFWqNv3qlJY8NSdQ6gsk6JuoC+GkuQj5wt4=; b=V1wPb5908ib5ZJGxVmc9wim+K+YHHe3qM8CHUSuhKc8O52QNjpwd5/xX /1+QJiwhbSBbbjgoUXhMeL+tneEXaas0zrntrbORpGSq1D0spK1qPVL76 QDRMG5R7Ubrrq2PucVGYYvhz9jONtJchIAF7jJRM6kpldq/o7luz1nvUh m4fFU0J49B458jubSyb8D0txorvB9BSXu+p94s9TJraasd1RWu0P8w02H VN14h/b0Ww1E6hXmP2YuTo24qqyuJoW+1qVohn72cDAEL4O8d9uB0Hwo4 m9q4i2epUHzAvQq3h9GEv5bZw5msS9BX3e1CcC1J+9oa69eeGy567k9tT Q==; X-CSE-ConnectionGUID: R1mbPkRGRjGl3G74CpXA7Q== X-CSE-MsgGUID: Ou0A0W66Q9GK7Rl6+uI2Wg== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="12122608" X-IronPort-AV: E=Sophos;i="6.08,163,1712646000"; d="scan'208";a="12122608" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 19:10:57 -0700 X-CSE-ConnectionGUID: Xiv1RFx/RWehaS2YuFpgjQ== X-CSE-MsgGUID: wuWerOxDTeW3RZVQneZFYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,163,1712646000"; d="scan'208";a="36139519" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 15 May 2024 19:10:57 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 15 May 2024 19:10:56 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 15 May 2024 19:10:56 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 15 May 2024 19:10:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yi9BVT4423Lka5Fz9paBLhzwYFuY/0JGU8vRzDZbVIhqZeewhzbJxoDGaBQJIAcKrH0qXb0uQbVU9PBu/8Z9vOG2zTfEcWyi0O2uK6MLPtgOttepWHDPh6U4RLyRZm2//5/lH4o2xjvJ/JPjdmfLQK3pP78E4AJAOnjk40xDzGG44J7F3ubC9q3+GXZthc2GySvFjyWyQh535LZs+p2A9W4oSauyNGMRPVYx+dG5LnfpzuKxHcl44FSQXMyDssFfKWBY2W+2jifiUO6bPtJdzY1765El8DfhsA/yYn2MaIsU3g/+vDa2XW+JPLRPwZsyvWqutO+YfSxdWxe1BxRpzw== 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=jxsP+ZskzyndE+loAlGy00fGfzpgxRF0OqYU56JFXng=; b=TyuwndKj6+XETrVCgTTSdBEvHgkjPsJ37Awl92gtt+L5B5a45YtBHiYEEij0pYZERxNBJ4CO10VJgNqLOZ0fB17x6903ALmc50A+LoqljVHk243EGbJVv3miaztVHC/OKEX59aXpIn9RaYbBrtWYszfVAr8fnnJhaYp/mKPsqmkFeb/zdCTAAMLcuJ9fVHq6uD4Jy6TyYC2p3GUVI4xZ0eg/8U0RJnNZAZl0HSvm1tMi1fpWL0CnH/m8pwywHz0jEAglnBsg9wj6Lj5goze+xEsI7m+WSW+pHPGzquKw5QTnHPDNGPiyXcI0vQj0fYa0NE/wVmcJr2LGqReRQKUZ3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by SA1PR11MB7039.namprd11.prod.outlook.com (2603:10b6:806:2b5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.28; Thu, 16 May 2024 02:10:48 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::fdb:309:3df9:a06b]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::fdb:309:3df9:a06b%4]) with mapi id 15.20.7544.052; Thu, 16 May 2024 02:10:48 +0000 Message-ID: Date: Thu, 16 May 2024 14:10:41 +1200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/16] KVM: x86/tdp_mmu: Support TDX private mapping for TDP MMU To: "Edgecombe, Rick P" , "Yamahata, Isaku" CC: "dmatlack@google.com" , "seanjc@google.com" , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "Zhao, Yan Y" , "Aktas, Erdem" , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , "isaku.yamahata@gmail.com" References: <20240515005952.3410568-1-rick.p.edgecombe@intel.com> <20240515005952.3410568-11-rick.p.edgecombe@intel.com> <12afae41-906c-4bb7-956a-d73734c68010@intel.com> <20240516014803.GI168153@ls.amr.corp.intel.com> Content-Language: en-US From: "Huang, Kai" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MW4PR04CA0363.namprd04.prod.outlook.com (2603:10b6:303:81::8) To BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) 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: BL1PR11MB5978:EE_|SA1PR11MB7039:EE_ X-MS-Office365-Filtering-Correlation-Id: 257971ac-86a6-45c5-9ed8-08dc754d674a X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?cHRic2k0dUUrcVM1b1hXcXZYaklzekdNZnptN2VLU2l2a0tNQSt5dGlEYlMv?= =?utf-8?B?VWpNbEMweWR0RzBWU2FDTmVTRTVncWNLVzBKQWJxTi9GcVlEZmJ5bjYvOUsz?= =?utf-8?B?cDkrUWtmVmdSR1BrUk9IZ0dCc3pRNEs1UWtNT1JBRjFISDZWSjBTUjhQYklF?= =?utf-8?B?QnBINXY2UUw2Y0VnU2tiSm8raUhJbDFvbno3dkhOUkdQVXJXcGFDaFpXNEMr?= =?utf-8?B?VlZVcFZmeUk4K2pXc3JYNi9OUkUxZkN1bkJQSTlwZTIyVGtJaDVHT1VaeDBq?= =?utf-8?B?Ym5SQ3VxNW5wWGVtT1dORWRKNl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MvdmdSamFjSlNsNnhoalh4bWRSSncxbGRr?= =?utf-8?B?MW1tYytjTVdiOER2SGh3cy96amhzOElPa3E5N25ZOEJEYjV6NFlIbVF5WXgv?= =?utf-8?B?VWdwZHo2UjNlRmVobDI2cUVja2Y3akw0TXgwZTBEV21wcXNVZXA1Wnl4dmtu?= =?utf-8?B?SmVWUUMvaWxDWGJaNWw2eWxEek1MSEdYWGUvc0xGRFJLNkFDWGVadGtMc0dT?= =?utf-8?B?R0t3dkFIcGZxUFNNTm5la1MxaUhkdTM1a3EzZUZadGMyZkcvUnpMbmc5MWIr?= =?utf-8?B?cFExZmhlRlNSeXJUUm94K29tS3FXM05pbFF5OUYrNG44WEJ6MHZZS3VnS1JT?= =?utf-8?B?RHpMZzNZYjU0VUZ2TURZLzF5TytaSDNEMFF5bDA5b1BqOEFEQnNuQ3lmNHpt?= =?utf-8?B?YkU0T0UvWUVzVHdkdHpZcUdSeU84ckE9PQ==?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR11MB5978.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T2tmWXdBdENWYWZocllRaHRhVTZRWWJZT0F4TDdxM29lM3AzNE5NUWdmYU1M?= =?utf-8?B?RXRzakI5YlR0WHRVdmwzeVFtS0pMUHNQeWFaZk4yRWx2WFYyajViSy95Q2N0?= =?utf-8?B?S3hCNitFZHBONWJVSk9tN3NBZkRCbVdsMC8rdVFuR25kWldyQ3JuNFdkMDRZ?= =?utf-8?B?b2ViVzRJRnNlejkrRlAwd0JLaUcrSE80Y0VlZ3M0S09LeVZKZThmdGRQSmhX?= =?utf-8?B?bWo2K1lsbkQ2QnEzSUtKYnJNZkluYWRvWk0zQUh0V2RsYmswR3Na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ld0YjBIRzlTNFhNK2t4aTgzWWNzSW1zeXZ3dldRRmsyRHFz?= =?utf-8?Q?xsbMs8+/8PZadpzaVGJd8qssu?= X-MS-Exchange-CrossTenant-Network-Message-Id: 257971ac-86a6-45c5-9ed8-08dc754d674a X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2024 02:10:48.7324 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4Zpmmpr+9fISWniUJhLMK2oPiC2JnEVkQOconKMXd6fWVge+evOOYDrxqu6uU45XI1wMvfL6quRcEUkSeKb/KQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB7039 X-OriginatorOrg: intel.com >>>> +       gfn_t raw_gfn; >>>> +       bool is_private = fault->is_private && kvm_gfn_shared_mask(kvm); >>> >>> Ditto.  I wish we can have 'has_mirrored_private_pt'. >> >> Which name do you prefer? has_mirrored_pt or has_mirrored_private_pt? > > Why not helpers that wrap vm_type like: > https://lore.kernel.org/kvm/d4c96caffd2633a70a140861d91794cdb54c7655.camel@intel.com/ I am fine with any of them -- boolean (with either name) or helper.