From: "Jan Beulich" Subject: Re: [RFC PATCH 3/3] Implement 3-level event channel routines. Date: Thu, 03 Jan 2013 10:46:25 +0000 Message-ID: <50E56F9102000078000B2AB6@nat28.tlf.novell.com> References: <1356978155-18293-1-git-send-email-wei.liu2@citrix.com> <1356978155-18293-4-git-send-email-wei.liu2@citrix.com> <1357145151.10985.27.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1357145151.10985.27.camel@zakaz.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Wei Liu Cc: Wei Liu , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 02.01.13 at 17:45, Ian Campbell wrote: > On Mon, 2012-12-31 at 18:22 +0000, Wei Liu wrote: >> + mapping = __map_domain_page_global(page); > > I don't think you can validly use map_domain_page for a long lived > mapping. domain_page.h says "Allow temporary mapping of domain page > frames into Xen space.". That's what distinguishes map_domain_page_global() from map_domain_page(). > Are these array per-vcpu or shared? Because if they are per-vcpu you > don't need the global variant. You still would, as the non-global set of mappings that can be active at a time is limited. But the leaf pages ought to be shared anyway. Jan