Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3864660ybt; Tue, 23 Jun 2020 12:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqV/3qF10OVp0dFYvpDx9GBatSpV2P2YZXAccoglUG7zCRhOkmcso4FsYXUZhYJi3FoasT X-Received: by 2002:aa7:c592:: with SMTP id g18mr23633244edq.85.1592941466124; Tue, 23 Jun 2020 12:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592941466; cv=none; d=google.com; s=arc-20160816; b=iyN0u2q4BYxWSdG4pSEU85jwGzOBd22m0iB6CGYLuk+3M6SItvLTmm3QbbPoRSb1JO 4i4GGgxTuQNHfWigC4dOnphVJFnhw0s/DCock6xgz/ZZtaLF1JGymDuJfSc+kC/YxO4/ 0I4u5nwQ64hgKS5JFhk0sgDg3KLiykbBSBNGrn07Noocqq0tWSZd/vdim+j3JpSyIG6s 8Vq1xheAC9IqaDLJsBly5wyX1l40Ti/Ca+P6th+ETrEP0p58jovf66HTn9b87+tNpSSA fenPiv/AtRsOIg6o4wlyv7DV/BTti6DW/a82zqGR934mThoPyo+E7fnPDe3O/Jm7FJKU Py9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=MItJVzZtlQHn/2ZUuu87Is+3+UJpbkwa47nc+tCo/AU=; b=rJ7IjHQhSjll1n/i6rTS7AUlSoLMBi+jVLb7S9PrfXw4P4UR3+KEbrb8rL7eUuJZiz XCZ/2YkIzdNz3n3ikMe8t4tmiBr64JfNIgQhqMEgl1vfyhGpo/3L4ZHuzR5xG0eFd3Vj Kj2iFYdw3lh/xlXxqWyMY8F0SwUb0if/vt4ETh/SGI6A3WI04wAWJqz9voIU98TjzWJh 5Ney1B3QT/93z5GWb6dNk83JwIbc8gKTbO+HS7xz99KjlNagnFNgKhZ4wDnPVCcUgQF1 w/bhfmlZipKIkdxSXyWHMA7NfCuTx8obMMp4cMxC3mdGEy6gG7mVBP8oIU+LXTOQ/POd BoGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si12277779edz.304.2020.06.23.12.44.02; Tue, 23 Jun 2020 12:44:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387547AbgFWTkd (ORCPT + 99 others); Tue, 23 Jun 2020 15:40:33 -0400 Received: from mga06.intel.com ([134.134.136.31]:64955 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733248AbgFWTk3 (ORCPT ); Tue, 23 Jun 2020 15:40:29 -0400 IronPort-SDR: 01Y5N8SnWR25b2IwAMr71YQuHXtjkuoLhKeXdY4/zhgD4tXX6N4oLUrjPrqAIvt2OunIU/PeYT VwhAOX+q6LrA== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="205705216" X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="205705216" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 12:40:28 -0700 IronPort-SDR: S3TCBbfVG/Ul8arqWcMNB31+ytFBBI3PSAu9amcsKQri8ijG9Cb2pHW7sbdecBkyc+l/lRcQPb +c+JKBgkYdTg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="319249361" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.152]) by FMSMGA003.fm.intel.com with ESMTP; 23 Jun 2020 12:40:28 -0700 From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Feiner , Jon Cargille Subject: [PATCH 0/2] KVM: x86/mmu: Optimizations for kvm_get_mmu_page() Date: Tue, 23 Jun 2020 12:40:25 -0700 Message-Id: <20200623194027.23135-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid multiple hash lookups in kvm_get_mmu_page(), and tweak the cache loop to optimize it for TDP. Sean Christopherson (2): KVM: x86/mmu: Avoid multiple hash lookups in kvm_get_mmu_page() KVM: x86/mmu: Optimize MMU page cache lookup for fully direct MMUs arch/x86/kvm/mmu/mmu.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) -- 2.26.0