Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2927875imm; Tue, 4 Sep 2018 12:16:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzU8jkfFK8y1ABC0LCDVyTlAxJl7N0fWG/d5D/LWss7FtB1cWo/t9uVz6nxTl0Cpai5Jy2 X-Received: by 2002:a65:41c6:: with SMTP id b6-v6mr32958259pgq.174.1536088570228; Tue, 04 Sep 2018 12:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536088570; cv=none; d=google.com; s=arc-20160816; b=dy8qe13gzVz1uag2irEm/K707J6EZzw34MwWmC+79oCS/Sg3+OqNm5WDWCoAV7RmZ+ KchS6ZDODgBvVzIJS1AzMrVEH0Yq4xPsBWZbQ7SongNX+dY24ySJENpNa10dd6ZDQXEx 4uaWhX1KElXnESRMEa+Pqp1/Lfsn1E/ZPC64ySVabSP57ZOB99cPoD/gkeIR3gvaeuHe q5yJdx7LLuUPbyB5LULCXYoeLERaEbnGk6Igs9ctdMinA8qQ9TgKPMQckrHYA7fYWhw0 Qa9Fs3fCMdHiG9ZynxALZD+mj2i4yeon+3ln6o3PLXp/bn7Pr9XOzKZhcc7HtIUN0cdH h+Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=buLRMwdSjAY4G/pC2QXAUE2EfRLoOyvE9fw1HwsIzTg=; b=npH3T3e6zkcL4vZTE6G5fyxFi2S39t5AiDF+ZNajM363+DPXT2Ve1srCsx8BunPh7n xnttVPD8OTQxoiGogbF+/ZInV5NL/9pg+4fUUMbjLW72ePOHMfqtKuRwPg2alHB9+pW5 7lq3Abso53cQsduFgJHvaPexwuSJhHoy2d0HVoLFxh/Yh13dxW25zdJ0NAzkIja9YqOh w9YkPbbYxOQqtFIZwQtP1IdoGsqQ6UA0zkC8lfRfNft8AkbtZPvk1terJJED00IyoG7C 0sS5rydHdaMnOZrXcKEsQxM40Br8XDKHhBs6JId/UFvoB/XL+R0HdoXv5oclTK2Vywmz DpyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a2-v6si21435164pgh.396.2018.09.04.12.15.54; Tue, 04 Sep 2018 12:16:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728033AbeIDXlL (ORCPT + 99 others); Tue, 4 Sep 2018 19:41:11 -0400 Received: from mga11.intel.com ([192.55.52.93]:48036 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbeIDXlK (ORCPT ); Tue, 4 Sep 2018 19:41:10 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 12:14:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,330,1531810800"; d="scan'208";a="260670318" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.20]) by fmsmga006.fm.intel.com with ESMTP; 04 Sep 2018 12:14:25 -0700 Date: Tue, 4 Sep 2018 12:14:25 -0700 From: Sean Christopherson To: Fengguang Wu Cc: Andrew Morton , Linux Memory Management List , Peng DongX , Liu Jingqi , Dong Eddie , Dave Hansen , Huang Ying , Brendan Gregg , kvm@vger.kernel.org, LKML Subject: Re: [RFC][PATCH 5/5] [PATCH 5/5] kvm-ept-idle: enable module Message-ID: <20180904191424.GC5869@linux.intel.com> References: <20180901112818.126790961@intel.com> <20180901124811.703808090@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180901124811.703808090@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 01, 2018 at 07:28:23PM +0800, Fengguang Wu wrote: > Signed-off-by: Fengguang Wu > --- > arch/x86/kvm/Kconfig | 11 +++++++++++ > arch/x86/kvm/Makefile | 4 ++++ > 2 files changed, 15 insertions(+) > > diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig > index 1bbec387d289..4c6dec47fac6 100644 > --- a/arch/x86/kvm/Kconfig > +++ b/arch/x86/kvm/Kconfig > @@ -96,6 +96,17 @@ config KVM_MMU_AUDIT > This option adds a R/W kVM module parameter 'mmu_audit', which allows > auditing of KVM MMU events at runtime. > > +config KVM_EPT_IDLE > + tristate "KVM EPT idle page tracking" KVM_MMU_IDLE_INTEL might be a more user friendly name, I doubt that all Kconfig users would immediately associate EPT with Intel's two dimensional paging. And it meshes nicely with KVM_MMU_IDLE as a base name if we ever want to move common functionality to its own module, as well as all of the other KVM_MMU_* nomenclature. > + depends on KVM_INTEL > + depends on PROC_PAGE_MONITOR > + ---help--- > + Provides support for walking EPT to get the A bits on Intel > + processors equipped with the VT extensions. > + > + To compile this as a module, choose M here: the module > + will be called kvm-ept-idle. > + > # OK, it's a little counter-intuitive to do this, but it puts it neatly under > # the virtualization menu. > source drivers/vhost/Kconfig > diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile > index dc4f2fdf5e57..5cad0590205d 100644 > --- a/arch/x86/kvm/Makefile > +++ b/arch/x86/kvm/Makefile > @@ -19,6 +19,10 @@ kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \ > kvm-intel-y += vmx.o pmu_intel.o > kvm-amd-y += svm.o pmu_amd.o > > +kvm-ept-idle-y += ept_idle.o > + > obj-$(CONFIG_KVM) += kvm.o > obj-$(CONFIG_KVM_INTEL) += kvm-intel.o > obj-$(CONFIG_KVM_AMD) += kvm-amd.o > + > +obj-$(CONFIG_KVM_EPT_IDLE) += kvm-ept-idle.o > -- > 2.15.0 > > >