Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1457198rbb; Mon, 26 Feb 2024 09:49:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWO4glXLauNC6u4dNiiqiK5nrmRss7igt663iIZ+LBPBDqdt9Y6tJXm6cn87MpZ9B2jZbE/liT7sx7IpW4ICb7ZlQa7y6MSlFdLifFXCg== X-Google-Smtp-Source: AGHT+IGklEXIPBpqLpxa3wsr3lJgP8stPmVzfvFWBSr3q2VAAh1ZtZVVMP+ONKxnV3/dDKkilEiQ X-Received: by 2002:a17:903:2449:b0:1dc:248:28e6 with SMTP id l9-20020a170903244900b001dc024828e6mr8029486pls.67.1708969741029; Mon, 26 Feb 2024 09:49:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708969741; cv=pass; d=google.com; s=arc-20160816; b=SNyg1x8pRwPHgpewLhl+77EPCYhodJAqSTppKvTzxnhil4f8FuyK6vRha9gre2I4wR RFc3CNvcAd8/UWA5G1TfRoZfMuUR6KdvzmPYdnEgfHDouriLNmPRMLXeXpKlCpzF7YN7 i1f1IJfkxRsEQLly0+Hit+2nfT8uX4kBXU0DiL3g4sYsff5gYMebARm60/AAlLrJ2yXR PMdX+u6mYAUbqmNjeqVVV7OSuj/ngDCt3rHFrYBhgNRhB6BmiZij81ASF85iL3X2bBl5 YY8kidvg1BTt5hJy7xQMf/gOOhNQoWT6rx4kVYisCjLzuJxz+rw9MG41n0MNffCLwuSK o3IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=htMTOQ9MD4OsNfpqdOTCx00VgxYuSRDDRzT52OFjTPg=; fh=qP+wv4D6dqFJthxbBIYa9DD81B/stEzFvLvdKmr3vLU=; b=WKS4dt04z2AX7U87nI0ewK6teWJb19PAkhy6WXTUvyfMGIWvLSo1Z4igFq3gmt1Tfk 3QzVriH0zp0sqtx/oD3MJlUsfhBJ8J40IJWIiNC9LcVR5hsvl3iDbGhsexW+qU9IvKjw dV9USrscKd5emCO4HTosmQ3EtO9Hfv2CTf/rjswVE9vZnyBRPBfa6bV1LV5K7MB4n917 1tjSb9YXZWMkIi9G7ZBXHjA0vPJtvxaDSTeSrgjzVHesn+RHSWmu55E8VlJuStDbvIDY 1d3DG3s/oSqBwqVbVzy+R285po41/li9+D+bWhKNRw9we0VySTK7BqNTIq4ereizIrXK 4FHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sant42uM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-82097-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p3-20020a170902780300b001dbe268a07fsi3880214pll.16.2024.02.26.09.49.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:49:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82097-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=@intel.com header.s=Intel header.b=Sant42uM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-82097-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82097-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4B20C28F817 for ; Mon, 26 Feb 2024 17:49:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAE0412F59F; Mon, 26 Feb 2024 17:48:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Sant42uM" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 C70FB12EBED; Mon, 26 Feb 2024 17:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708969715; cv=none; b=XlPtqA9ZnbTUOSLIIfKzOvHskm7+XI2Cl7oqak4ltWWLZt7/oQ1l3paJb+uC6qiazf+VqnZkpJKIuZcpW0LaF0KHUzmLtbPl6IkE8wx2Kr6am7M6xvlRTJaS01TwxrrmMg0wzCiMGw4FMGcqbw0+bvaPvFAqp0Ljcc1CjptcUYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708969715; c=relaxed/simple; bh=WA21Fa+u+0bZAQGTzI3bdQdJE0FzbKKnJdNhwb93T+E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gOcdz9u5K9MOZXVQnXbC+RIkR9TzPyO3B7ByX1QSoobmEKqxB7wvtZ/c0Gs0ZakGlDjtBLXLPpXI6MoJpFfOU/tK5jLKa8Ivj5YvA9HE2Mz11aXB291B77lhR08HlwZNX3IoIvwpvQNk9Uk00svqeFeOKSgyMPYaF5UgbKM7MGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Sant42uM; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.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=1708969712; x=1740505712; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=WA21Fa+u+0bZAQGTzI3bdQdJE0FzbKKnJdNhwb93T+E=; b=Sant42uMS0h1lu1JPV2clx/fTqWpp9fp/21xua7ShTkQQ6qDuCbFQIdB V7z6UdWIkZ72xOXfm55lKkof/h1he7mJPofLET1Q2WWBasWhEKFkjkh4+ Dp/Mkpc/jBBDpoN5LFHVMVARY3cL+P6XMs45CZZU2L8WEm6M283v5FQoD 14w3oyjKG0sLDwpYgGzA/iY47WqJA0VujDeu8z4s4AlmDGPT6hIz4FSrI z9pV+dCaZht7/6ZNAf73TBOhNF0DUYWyEPXzjc/Jhtb6YjGlje1G/qCsM oMXkRF2uQ6MTlyfojIIL5Ap1Xa1GoDKFV0iSYTV4oATJYkvlWVT8ENUOZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3428125" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="3428125" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 09:48:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="29919652" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 09:48:32 -0800 Date: Mon, 26 Feb 2024 09:48:30 -0800 From: Isaku Yamahata To: Paolo Bonzini Cc: Sean Christopherson , isaku.yamahata@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, isaku.yamahata@gmail.com, erdemaktas@google.com, Sagi Shahar , Kai Huang , chen.bo@intel.com, hang.yuan@intel.com, tina.zhang@intel.com, isaku.yamahata@linux.intel.com Subject: Re: [PATCH v18 032/121] KVM: x86/mmu: introduce config for PRIVATE KVM MMU Message-ID: <20240226174830.GA177224@ls.amr.corp.intel.com> References: <591420ca62f0a9ac2478c2715181201c23f8acf0.1705965635.git.isaku.yamahata@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Feb 13, 2024 at 05:47:43PM +0100, Paolo Bonzini wrote: > On Tue, Feb 13, 2024 at 3:57 AM Sean Christopherson wrote: > > The only thing that even so much as approaches being a hot path is > > kvm_gfn_shared_mask(), and if that needs to be optimized, then we'd probably be > > better off with a static_key, a la kvm_has_noapic_vcpu (though I'm *extremely* > > skeptical that that adds any measurable benefit). > > I'm okay with killing it altogether. I eliminated this config. -- Isaku Yamahata