Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3582608ybl; Sun, 12 Jan 2020 22:01:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwfBfnS5n3BbjbxrvNNb/ubckHfK/X+dD2LB2MqeAGCfQpfsZPUGYcn+UdEBsDF9WVDyH3o X-Received: by 2002:aca:4d58:: with SMTP id a85mr10855155oib.35.1578895303845; Sun, 12 Jan 2020 22:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578895303; cv=none; d=google.com; s=arc-20160816; b=BUOE8FaMbc5T6LNRqiXAJJC8ZVxalyx1/vh1ol2KLOWHi2Twq3eAOguP8GSz2Zyfb5 I3wm52LQex2MgLqa0DZNHExB9d/a5aKEaLphKuOQq++W3vnix6qCaWbYTHLuz55VDIZH uPPAyvpx58hNofII7jjVhkAgT1giSJapUrEzW7hLWWZPYUySIVc10Y5lqQQnpr+p9uKM yYAxrCZf0brW1Y8KGOMck9ntZWjc8Cd8xie4xbVRgdAz/IE8N3eStroq01dnEhJN+c32 oiN9VMq4fr18+1raCUNgQDbc7DaJe3TExaz8UCwn3ejTtxBu+/g9WQInqkYR4IiJxoQy 0LGg== 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; bh=FK/2wb3D8gKoF2Zttdq3rvmg/Bns9XXYAJ/wrWXyltI=; b=ZDknvpsM8dHhxR/fRW+531QCAKwWJIF5xuYwrvzWyx6dsdnoDG/SF+zAR9HJCL1ON0 28ZXyOxL/sFcX0PrabDTn9T+OhvzTeGYlia/uamvfA4O1KfjaDAch1Lxg3Oc4l/iw87n YWQ8wdc4V5U8X/NDUZkWo5YWI6LO4P3KfsEwvEP6d7sHuJb5bPasWeuVyk80LrfBAbe+ h5ytNSojqRtNyIzo657mvPMWArMaB/U/UA3BmZEiuOhKS5xGhbgwOxTF+eHV/H0935gk Iav5rKF6DfZaHhWnft8/hiDloi4+JWouF3QhJXmkYfVJtsBunor6A/Z54rWHtaCpKq7P Tsrg== 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 f81si5356068oig.110.2020.01.12.22.01.32; Sun, 12 Jan 2020 22:01:43 -0800 (PST) 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 S1732757AbgAMGAg (ORCPT + 99 others); Mon, 13 Jan 2020 01:00:36 -0500 Received: from mga07.intel.com ([134.134.136.100]:36257 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbgAMGAg (ORCPT ); Mon, 13 Jan 2020 01:00:36 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jan 2020 22:00:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,427,1571727600"; d="scan'208";a="255770257" Received: from unknown (HELO localhost) ([10.239.159.128]) by fmsmga002.fm.intel.com with ESMTP; 12 Jan 2020 22:00:34 -0800 Date: Mon, 13 Jan 2020 14:04:55 +0800 From: Yang Weijiang To: Sean Christopherson Cc: Yang Weijiang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com, jmattson@google.com, yu.c.zhang@linux.intel.com, alazar@bitdefender.com, edwin.zhai@intel.com Subject: Re: [RESEND PATCH v10 03/10] mmu: spp: Add SPP Table setup functions Message-ID: <20200113060455.GC12253@local-michael-cet-test.sh.intel.com> References: <20200102061319.10077-1-weijiang.yang@intel.com> <20200102061319.10077-4-weijiang.yang@intel.com> <20200110174026.GE21485@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110174026.GE21485@linux.intel.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 09:40:27AM -0800, Sean Christopherson wrote: > On Thu, Jan 02, 2020 at 02:13:12PM +0800, Yang Weijiang wrote: > > SPPT is a 4-level paging structure similar to EPT, when SPP is > > armed for target physical page, bit 61 of the corresponding > > EPT entry is flaged, then SPPT is traversed with the gfn, > > the leaf entry of SPPT contains the access bitmap of subpages > > inside the target 4KB physical page, one bit per 128-byte subpage. > > > > Co-developed-by: He Chen > > Signed-off-by: He Chen > > Co-developed-by: Zhang Yi > > Signed-off-by: Zhang Yi > > Signed-off-by: Yang Weijiang > > --- > > arch/x86/include/asm/kvm_host.h | 5 +- > > arch/x86/kvm/mmu/spp.c | 228 ++++++++++++++++++++++++++++++++ > > arch/x86/kvm/mmu/spp.h | 10 ++ > > This patch is completely untesteable. It adds spp.c but doesn't compile > it. Actually, everything up until patch 06 is untestable. OK, will re-order the patches in a reasonable sequence. thank you!