From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T64YB-0001nG-3n for qemu-devel@nongnu.org; Mon, 27 Aug 2012 15:00:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T64YA-00082a-1p for qemu-devel@nongnu.org; Mon, 27 Aug 2012 15:00:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T64Y9-00082U-Q9 for qemu-devel@nongnu.org; Mon, 27 Aug 2012 15:00:37 -0400 Date: Mon, 27 Aug 2012 22:01:27 +0300 From: "Michael S. Tsirkin" Message-ID: <20120827190127.GB13049@redhat.com> References: <825e653c9cfe9d8e26185917cbe1f1dd7ae299e2.1346048917.git.jan.kiszka@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 4/4] kvm: i386: Add classic PCI device assignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: kvm@vger.kernel.org, Marcelo Tosatti , qemu-devel@nongnu.org, Alex Williamson , Jan Kiszka , Avi Kivity On Mon, Aug 27, 2012 at 06:56:38PM +0000, Blue Swirl wrote: > > +static uint32_t slow_bar_readb(void *opaque, target_phys_addr_t addr) > > +{ > > + AssignedDevRegion *d = opaque; > > + uint8_t *in = d->u.r_virtbase + addr; > > Don't perform arithmetic with void pointers. Why not? We require gcc and it's a documented extension there.