From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qw9f6-00037R-Ot for qemu-devel@nongnu.org; Wed, 24 Aug 2011 05:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qw9f4-0002iZ-TZ for qemu-devel@nongnu.org; Wed, 24 Aug 2011 05:22:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qw9f4-0002iV-Jw for qemu-devel@nongnu.org; Wed, 24 Aug 2011 05:22:14 -0400 Message-ID: <4E54C2C2.3030603@redhat.com> Date: Wed, 24 Aug 2011 12:22:10 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1314021534-3212-1-git-send-email-avi@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] pcnet-pci: fix wrong opaque given to I/O accessors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org On 08/22/2011 05:16 PM, Gerhard Wiesinger wrote: > Hello Avi, > > Thnx, fixed: OK, maybe some credits :-) > > Acked-by: Gerhard Wiesinger > > This pattern is still present at (maybe some further problems!!!) and > I guess it has to be fixed, too: > > grep -ir 'ops, s, "' . > ./hw/rtl8139.c: memory_region_init_io(&s->bar_io, &rtl8139_io_ops, > s, "rtl8139", 0x100); > ./hw/rtl8139.c: memory_region_init_io(&s->bar_mem, > &rtl8139_mmio_ops, s, "rtl8139", 0x100); Usually, when you have memory_region_init_io(&s->something, ..., s, ...) it means everything is fine. Lance/pcnet is special in this regard. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.