From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933417AbbDPIc4 (ORCPT ); Thu, 16 Apr 2015 04:32:56 -0400 Received: from mga09.intel.com ([134.134.136.24]:15424 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbbDPIct (ORCPT ); Thu, 16 Apr 2015 04:32:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,586,1422950400"; d="scan'208";a="681014930" Date: Thu, 16 Apr 2015 16:14:40 +0800 From: Wanpeng Li To: Paolo Bonzini Cc: Xiao Guangrong , Andres Lagar-Cavilla , Wanpeng Li , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Northup Subject: Re: [PATCH] KVM: MMU: fix comment in kvm_mmu_zap_collapsible_spte Message-ID: <20150416081440.GA3575@kernel> Reply-To: Wanpeng Li References: <1428046825-6905-1-git-send-email-wanpeng.li@linux.intel.com> <552B1FC3.4070604@linux.intel.com> <552C91BA.1010703@linux.intel.com> <552E7E4C.5020804@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <552E7E4C.5020804@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2015 at 05:05:48PM +0200, Paolo Bonzini wrote: > > >> - * Only EPT supported for now; otherwise, one would need to >> - * find out efficiently whether the guest page tables are >> - * also using huge pages. >> + * We can not do huge page mapping for the indirect shadow >> + * page (sp) found on the last rmap (level = 1 ) since >> + * indirect sp is synced with the page table in guest and >> + * indirect sp->level = 1 means the guest page table is >> + * using 4K page size mapping. > >What about: > >+ * We cannot do huge page mapping for indirect shadow pages, >+ * which are found on the last rmap (level = 1) when not using >+ * tdp; such shadow pages are synced with the page table in >+ * the guest, and the guest page table is using 4K page size >+ * mapping if the indirect sp has level = 1. Reviewed-by: Wanpeng Li