From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql1kn-00014N-Jv for qemu-devel@nongnu.org; Sun, 24 Jul 2011 12:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ql1km-00013P-99 for qemu-devel@nongnu.org; Sun, 24 Jul 2011 12:42:09 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:34207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ql1km-00013L-6m for qemu-devel@nongnu.org; Sun, 24 Jul 2011 12:42:08 -0400 Received: by vws17 with SMTP id 17so2986478vws.4 for ; Sun, 24 Jul 2011 09:42:07 -0700 (PDT) Sender: Richard Henderson Message-ID: <4E2C4B5B.9030402@twiddle.net> Date: Sun, 24 Jul 2011 09:42:03 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1311448659-17424-1-git-send-email-rth@twiddle.net> <1311448659-17424-2-git-send-email-rth@twiddle.net> <4E2C1E0D.4050100@codemonkey.ws> In-Reply-To: <4E2C1E0D.4050100@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/7] Export the unassigned_mem read/write functions. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On 07/24/2011 06:28 AM, Anthony Liguori wrote: > On 07/23/2011 02:17 PM, Richard Henderson wrote: >> Signed-off-by: Richard Henderson > > Why? So that I can write i/o functions like this: switch (addr) { case 0: ... case 64: ... case 128: ... ... default: unassigned_mem_readl(...) } Perhaps Avi's rewrite makes this unnecessary; I browsed through his patch set but didn't immediately see if there's a way for the i/o function to return "failure". What I certainly don't want to do is write this with 100 tiny functions registering 8 bytes each, registered some tiny distance away from each other. r~