Received: from [140.186.70.92] (port=37920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oju1J-0004kN-4b for qemu-devel@nongnu.org; Fri, 13 Aug 2010 09:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oju1H-0006H7-OW for qemu-devel@nongnu.org; Fri, 13 Aug 2010 09:10:00 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:55692 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oju1H-0006Gy-H6 for qemu-devel@nongnu.org; Fri, 13 Aug 2010 09:09:59 -0400 Date: Fri, 13 Aug 2010 14:10:10 +0100 From: Stefano Stabellini Subject: Re: [Qemu-devel] [PATCH 09/15] xen: Initialize event channels and io rings In-Reply-To: Message-ID: References: <1281622202-3453-9-git-send-email-stefano.stabellini@eu.citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Anthony Perard , "xen-devel@lists.xensource.com" , "qemu-devel@nongnu.org" , Stefano Stabellini On Thu, 12 Aug 2010, Blue Swirl wrote: > > +static inline void read_physical(uint64_t addr, unsigned long size, void *val) > > +{ > > + return cpu_physical_memory_rw((target_phys_addr_t)addr, val, size, 0); > > +} > > + > > +static inline void write_physical(uint64_t addr, unsigned long size, void *val) > > +{ > > + return cpu_physical_memory_rw((target_phys_addr_t)addr, val, size, 1); > > +} > > Useless redirection? > I guess we can just use cpu_physical_memory_read/write instead of read_physical and write_physical here. Ok also to all the other comments.