From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 5/7] KVM: MMU: remove the arithmetic of parent pte rmap Date: Sun, 15 May 2011 16:44:54 +0800 Message-ID: <4DCF9286.8060704@cn.fujitsu.com> References: <4DCEF5B1.3050706@cn.fujitsu.com> <4DCEF7C2.401@cn.fujitsu.com> <4DCF8D6B.9080905@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 cn.fujitsu.com ([222.73.24.84]:52967 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754849Ab1EOInH (ORCPT ); Sun, 15 May 2011 04:43:07 -0400 In-Reply-To: <4DCF8D6B.9080905@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 05/15/2011 04:23 PM, Avi Kivity wrote: > On 05/15/2011 12:44 AM, Xiao Guangrong wrote: >> Parent pte rmap and page rmap are very similar, so use the same arithmetic for >> them >> > > While they're similar, this is going to cause a lot of confusion because the name 'rmap' already has a deep meaning, at least for me. > > Maybe we can call the abstract structure 'spte_list' and define operations on that, then implement rmap_* and *_parent_pte as wrappers around spte_list. > OK, will fix the confused name in next version, thanks!