From: Tim Deegan Subject: Re: [PATCH v2 1/5] x86/shadow: tidy up fragmentary page lists in multi?page shadows Date: Mon, 2 Feb 2015 12:55:33 +0100 Message-ID: <20150202115533.GB82146@deinos.phlegethon.org> References: <54CF68DF020000780005BD6C@mail.emea.novell.com> <54CF6B24020000780005BD95@mail.emea.novell.com> <54CF62F1.1060206@citrix.com> <54CF71DF020000780005BE0C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YIFbh-0007od-14 for xen-devel@lists.xenproject.org; Mon, 02 Feb 2015 11:55:57 +0000 Content-Disposition: inline In-Reply-To: <54CF71DF020000780005BE0C@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Andrew Cooper , Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org At 11:47 +0000 on 02 Feb (1422874047), Jan Beulich wrote: > >>> On 02.02.15 at 12:43, wrote: > > On 02/02/15 11:18, Jan Beulich wrote: > >> --- a/xen/arch/x86/mm/shadow/common.c > >> +++ b/xen/arch/x86/mm/shadow/common.c > >> @@ -1196,6 +1196,26 @@ int shadow_cmpxchg_guest_entry(struct vc > >> * the free pool. > >> */ > >> > >> +const u32 sh_type_to_size[] = { > > > > u8 instead? The maximum value held is 4. > > Good point, but it was u32 before, so I'll leave it to Tim to decide. Yes, u8 would be better. Cheers, Tim.