From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgAJY-0002ts-Iy for qemu-devel@nongnu.org; Mon, 11 Jul 2011 02:49:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgAJX-0005Fs-Km for qemu-devel@nongnu.org; Mon, 11 Jul 2011 02:49:56 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:54658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgAJX-0005FY-DH for qemu-devel@nongnu.org; Mon, 11 Jul 2011 02:49:55 -0400 Date: Mon, 11 Jul 2011 02:49:48 -0400 (EDT) From: Avi Kivity Message-ID: <1452359532.127118.1310366988158.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com> In-Reply-To: <4E1A54ED.7040606@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v3 31/56] ac97: convert to memory API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org > > Shouldn't it be possible to do something like: > > typedef struct OldMemoryRegionOps { > MemoryRegionOps parent_ops; > CPUReadMemoryFunc *readfn[3]; > CPUWriteMemoryFunc *writefn[3]; > void *opaque; > } OldMemoryRegionOps; > > That should allow old-style implementations to be converted without > introducing trampoline functions everywhere. > I should, I'll give it a go.