From: "Jan Beulich" Subject: Re: [PATCH 1/3] x86/mem_access: Make the mem_access ops generic Date: Fri, 11 Apr 2014 10:48:14 +0100 Message-ID: <5347D67E0200007800007E8B@nat28.tlf.novell.com> References: <1397188179-14606-1-git-send-email-aravindp@cisco.com> <1397188179-14606-2-git-send-email-aravindp@cisco.com> <5347B769.5040106@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WYY4G-0001iz-Vh for xen-devel@lists.xenproject.org; Fri, 11 Apr 2014 09:48:17 +0000 In-Reply-To: <5347B769.5040106@citrix.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: Andrew Cooper Cc: xen-devel@lists.xenproject.org, Tim Deegan , Keir Fraser , Aravindh Puthiyaparambil List-Id: xen-devel@lists.xenproject.org >>> On 11.04.14 at 11:35, wrote: > On 11/04/14 04:49, Aravindh Puthiyaparambil wrote: >> --- a/xen/arch/x86/mm/mem_access.c >> +++ b/xen/arch/x86/mm/mem_access.c >> @@ -21,31 +21,98 @@ >> */ >> >> >> +#include >> +#include >> +#include >> #include >> #include >> +#include >> >> >> -int mem_access_memop(struct domain *d, xen_mem_event_op_t *meo) >> +#define ACCESS_op_mask 0xff >> + >> +int mem_access_memop(XEN_GUEST_HANDLE_PARAM(void) arg, unsigned long > start_iter) >> { >> - int rc; >> + long rc; > > int function and long rc? The function wants promoting to long. No, what makes it out of the function fits in an "int", but the result from p2m_set_mem_access() needs the variable to be "long". Jan