From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzXqL-0003lZ-T1 for qemu-devel@nongnu.org; Wed, 17 Jul 2013 15:56:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzXqL-0001Gg-0I for qemu-devel@nongnu.org; Wed, 17 Jul 2013 15:56:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzXqK-0001Gb-PN for qemu-devel@nongnu.org; Wed, 17 Jul 2013 15:56:56 -0400 Message-ID: <51E6F6FD.5060208@redhat.com> Date: Wed, 17 Jul 2013 21:56:45 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1373840171-25556-1-git-send-email-rth@twiddle.net> <1373840171-25556-4-git-send-email-rth@twiddle.net> <8761w9wm50.fsf@blackfin.pond.sub.org> <51E67B7A.8000800@redhat.com> <8761w9gp88.fsf@codemonkey.ws> <51E6D54B.7020700@redhat.com> <51E6E1CE.5080609@twiddle.net> <51E6E90D.9050300@redhat.com> <51E6F046.6060900@twiddle.net> In-Reply-To: <51E6F046.6060900@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 3/5] exec: Support 64-bit operations in address_space_rw List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Anthony Liguori , Gerd Hoffmann , Markus Armbruster , qemu-devel@nongnu.org Il 17/07/2013 21:28, Richard Henderson ha scritto: > On 07/17/2013 11:57 AM, Paolo Bonzini wrote: >> I'm still not sure what the bug is (so what the FIXME comment would >> be)... except of course that there may be bug in access_with_adjusted_size. > > The code here in exec.c is not using access_with_adjusted_size. It is: cpu_outb -> address_space_write -> address_space_rw -> io_mem_write -> memory_region_dispatch_write -> access_with_adjusted_size memory_access_size is just returning a length that makes sense when passed to io_mem_write and ultimately to access_with_adjusted_size. Paolo > Unfortunately, access_with_adjusted_size only handles single copies, > one direction at a time. We're attempting a sort of "memcpy", which > calls for some amount of caching across the loop... > > > r~ >