From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49938) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUp8u-0005Ka-6n for qemu-devel@nongnu.org; Thu, 27 Aug 2015 00:50:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUp8q-0007My-KH for qemu-devel@nongnu.org; Thu, 27 Aug 2015 00:50:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUp8q-0007MR-A5 for qemu-devel@nongnu.org; Thu, 27 Aug 2015 00:50:24 -0400 Message-ID: <55DE970B.6040807@redhat.com> Date: Thu, 27 Aug 2015 12:50:19 +0800 From: Jason Wang MIME-Version: 1.0 References: <1440583448-15797-1-git-send-email-jasowang@redhat.com> <20150826165140.6bab7d28@bahia.local> In-Reply-To: <20150826165140.6bab7d28@bahia.local> Content-Type: text/plain; charset=windows-1252 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: Greg Kurz , Peter Maydell Cc: Paolo Bonzini , QEMU Developers , "Michael S. Tsirkin" On 08/26/2015 10:51 PM, Greg Kurz wrote: > 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 > Yes, this is because we want to use wildcard mmio eventfd (which requires size to be zero) to speed up virtio 1.0 mmio.