From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH v3 01/15] xen: Relocate mem_access and mem_event into common. Date: Mon, 01 Sep 2014 16:06:03 +0100 Message-ID: <5404A77B020000780002F860@mail.emea.novell.com> References: <1409581329-2607-1-git-send-email-tklengyel@sec.in.tum.de> <1409581329-2607-2-git-send-email-tklengyel@sec.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409581329-2607-2-git-send-email-tklengyel@sec.in.tum.de> 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: Tamas K Lengyel Cc: ian.campbell@citrix.com, tim@xen.org, julien.grall@linaro.org, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, andres@lagarcavilla.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org >>> On 01.09.14 at 16:21, wrote: > --- /dev/null > +++ b/xen/common/mem_access.c > @@ -0,0 +1,133 @@ > +/****************************************************************************** > + * mem_access.c > + * > + * Memory access support. > + * > + * Copyright (c) 2011 Virtuata, Inc. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > + */ > + > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include I asked you on the previous round already to get this mixture of headers from various subdirectories cleaned up: Unless anything really can't be made built with properly grouped headers, please have all xen/, asm/, public/, xsm/, etc headers each grouped together. > +int prepare_ring_for_helper( > + struct domain *d, unsigned long gmfn, struct page_info **_page, > + void **_va) > +{ > + struct page_info *page; > + p2m_type_t p2mt; > + void *va; > + > + page = get_page_from_gfn(d, gmfn, &p2mt, P2M_UNSHARE); > + > +#ifdef CONFIG_MEM_PAGING I can't spot where this and CONFIG_MEM_SHARING get defined in this patch. Jan