From: Tim Deegan Subject: Re: [PATCH] mem_sharing: use paging_mode_hap Date: Tue, 18 May 2010 13:10:15 +0100 Message-ID: <20100518121015.GF4164@whitby.uk.xensource.com> References: <201005111420.22481.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <201005111420.22481.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 13:20 +0100 on 11 May (1273584022), Christoph Egger wrote: > > Hi! > > Attached patch uses paging_mode_hap. > > Signed-off-by: Christoph Egger Acked-by: Tim Deegan (though in fact AFAICS this macro is never used.) Content-Description: xen_pagingmode.diff > diff -r 7ee8bb40200a xen/include/asm-x86/mem_sharing.h > --- a/xen/include/asm-x86/mem_sharing.h Thu Apr 15 19:11:16 2010 +0100 > +++ b/xen/include/asm-x86/mem_sharing.h Fri Apr 16 17:11:32 2010 +0200 > @@ -23,7 +23,7 @@ > #define __MEM_SHARING_H__ > > #define sharing_supported(_d) \ > - (is_hvm_domain(_d) && (_d)->arch.hvm_domain.hap_enabled) > + (is_hvm_domain(_d) && paging_mode_hap(_d)) > > typedef uint64_t shr_handle_t; > -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)