From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUwB9-0005lS-Nz for qemu-devel@nongnu.org; Thu, 27 Aug 2015 08:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUwB6-00082W-LN for qemu-devel@nongnu.org; Thu, 27 Aug 2015 08:21:15 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:34498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUwB6-00082M-Hp for qemu-devel@nongnu.org; Thu, 27 Aug 2015 08:21:12 -0400 Received: by vkm66 with SMTP id 66so8073507vkm.1 for ; Thu, 27 Aug 2015 05:21:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150827151601-mutt-send-email-mst@redhat.com> References: <1440583448-15797-1-git-send-email-jasowang@redhat.com> <20150826165140.6bab7d28@bahia.local> <55DE970B.6040807@redhat.com> <20150827135126-mutt-send-email-mst@redhat.com> <20150827140715-mutt-send-email-mst@redhat.com> <20150827151601-mutt-send-email-mst@redhat.com> From: Peter Maydell Date: Thu, 27 Aug 2015 13:20:52 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 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: "Michael S. Tsirkin" Cc: Paolo Bonzini , Jason Wang , QEMU Developers , Greg Kurz On 27 August 2015 at 13:17, Michael S. Tsirkin wrote: > Basically the point is that ABI is extended to make > ioeventfd with len = 0 mean "any length". > 0 is thus not meaningless anymore. But how can you do adjustment for incorrect endianness if you don't know the size of the data that you're trying to work with? That's why this switch insists that the size is 1, 2, 4 or 8. -- PMM