From: Ian Campbell Subject: Re: [PATCH v2 01/15] xen/arm: register mmio handler at runtime Date: Wed, 9 Apr 2014 16:34:20 +0100 Message-ID: <1397057660.6275.118.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-2-git-send-email-vijay.kilari@gmail.com> <533EA307.4000900@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vijay Kilari Cc: Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , Julien Grall , xen-devel@lists.xen.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-04 at 18:00 +0530, Vijay Kilari wrote: > >> +void register_mmio_handler(struct domain *d, struct mmio_handler * handle); > > > > As I said on the previous version, it would be nice to remove check > > callback in the mmio_handler and replace it by addr/size. It's better if > > we might want to change the place in the memory following the guest. > > > > So the result function would be: > > > > register_mmio_handler(struct domain *d, read_t read, write_t write, > > addr, size); > > > OK. Regardless of addr+size vs check() I don't think it is necessary to explode struct mmio_handler into separate arguments here, passing a pointer to the static struct in each driver seems much nicer. Ian.