Received: from eggs.gnu.org ([2001:4830:134:3::10]:54834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUcoX-0000IL-Sm for qemu-devel@nongnu.org; Wed, 26 Aug 2015 11:40:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUcoS-0002x6-1C for qemu-devel@nongnu.org; Wed, 26 Aug 2015 11:40:37 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:50335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUcoR-0002vg-GM for qemu-devel@nongnu.org; Wed, 26 Aug 2015 11:40:31 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Aug 2015 16:40:29 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 55F1E17D931F for ; Wed, 26 Aug 2015 15:53:44 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t7QEq2Cx16908358 for ; Wed, 26 Aug 2015 14:52:05 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t7QEpqq5008183 for ; Wed, 26 Aug 2015 08:51:52 -0600 Date: Wed, 26 Aug 2015 16:51:40 +0200 From: Greg Kurz Message-ID: <20150826165140.6bab7d28@bahia.local> In-Reply-To: References: <1440583448-15797-1-git-send-email-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] memory: allow zero size for adjust_endianness() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Jason Wang , QEMU Developers , "Michael S. Tsirkin" On Wed, 26 Aug 2015 15:21:59 +0100 Peter Maydell wrote: > On 26 August 2015 at 11:04, Jason Wang wrote: > > Wildcard mmio eventfd use zero size, but it will lead abort() since it > > was illegal in adjust_endianness(). Fix this by allowing zero size. > > > > Cc: Greg Kurz > > Cc: Paolo Bonzini > > Signed-off-by: Jason Wang > > This seems to me like a bug in the caller. Why would anything > try to call into the memory subsystem to do a zero-size > transaction? > > thanks > -- PMM > Here's the patch which needs zero-size eventfd: http://patchwork.ozlabs.org/patch/509428/ Cheers. -- Greg