From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH] KVM: MMU: fix comment in kvm_mmu_zap_collapsible_spte Date: Thu, 16 Apr 2015 08:38:24 +0800 Message-ID: <552F0480.6020106@linux.intel.com> 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=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Wanpeng Li , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Northup To: Paolo Bonzini , Andres Lagar-Cavilla Return-path: In-Reply-To: <552E7E4C.5020804@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 04/15/2015 11:05 PM, 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. Yeah, much better. Thanks for your improvement, Paolo!