From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 4/8] KVM: MMU: drop unsync_child_bitmap Date: Fri, 23 Dec 2011 12:04:05 +0800 Message-ID: <4EF3FDB5.90600@linux.vnet.ibm.com> References: <4EEB19AF.5070501@linux.vnet.ibm.com> <4EEB1A71.4040503@linux.vnet.ibm.com> <4EEDAB87.1030506@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , LKML , KVM To: Avi Kivity Return-path: Received: from e28smtp04.in.ibm.com ([122.248.162.4]:60861 "EHLO e28smtp04.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525Ab1LWEEN (ORCPT ); Thu, 22 Dec 2011 23:04:13 -0500 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 23 Dec 2011 09:34:11 +0530 In-Reply-To: <4EEDAB87.1030506@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/18/2011 04:59 PM, Avi Kivity wrote: > On 12/16/2011 12:16 PM, Xiao Guangrong wrote: >> unsync_child_bitmap is used to record which spte has unsync page or unsync >> children, we can set a free bit in the spte instead of it >> > > unsync_child_bitmap takes one cacheline; the shadow page table takes > 64. This will make unsync/resync much more expensive. > Indeed, need more thing about this patch... > I suggest to put unsync_child_bitmap at the end (together with > unsync_children) and simply not allocate it when unneeded (have two > kmem_caches for the two cases). > > Good point, thanks Avi.