From: Ian Campbell Subject: Re: [PATCH 4/4] xen/arm: clean and invalidate all guest caches by VMID after domain build. Date: Thu, 30 Jan 2014 12:32:17 +0000 Message-ID: <1391085137.29487.27.camel@kazak.uk.xensource.com> References: <1390997452.31814.90.camel@kazak.uk.xensource.com> <1390997486-3986-4-git-send-email-ian.campbell@citrix.com> <52E9098B0200007800117EC5@nat28.tlf.novell.com> <1391004947.31814.119.camel@kazak.uk.xensource.com> <21226.14059.736402.79784@mariner.uk.xensource.com> <1391084675.29487.24.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1391084675.29487.24.camel@kazak.uk.xensource.com> 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 Jackson Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, george.dunlap@citrix.com, xen-devel@lists.xen.org, Jan Beulich List-Id: xen-devel@lists.xenproject.org On Thu, 2014-01-30 at 12:24 +0000, Ian Campbell wrote: > On Thu, 2014-01-30 at 11:26 +0000, Ian Jackson wrote: > > Ian Campbell writes ("Re: [PATCH 4/4] xen/arm: clean and invalidate all guest caches by VMID after domain build."): > > > On Wed, 2014-01-29 at 13:00 +0000, Jan Beulich wrote: > > >>> On 29.01.14 at 13:11, Ian Campbell wrote: > > > > > +int xc_domain_cacheflush(xc_interface *xch, uint32_t domid) > > > > > + domctl.domain = (domid_t)domid; > > > > > > > > Why can't the function parameter be domid_t right away? > > > > > > It seemed that the vast majority of the current libxc functions were > > > using uint32_t for whatever reason. > > > > What's the point of the cast, though ? > > Apparently all the cool kids in this file are doing it and I followed > suite ;-) > > domid_t is a uint16_t, I kind of expect gcc to warn about an assignment > of a uint32_t to a uint16_t to generate some sort of warning, but > apparently not... Just for completeness: -Wconversion is the option to make it do this.