From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtZiT-00010K-E2 for qemu-devel@nongnu.org; Tue, 03 Nov 2015 06:25:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtZiS-0001d9-FO for qemu-devel@nongnu.org; Tue, 03 Nov 2015 06:25:29 -0500 Date: Tue, 3 Nov 2015 12:25:20 +0100 From: Igor Mammedov Message-ID: <20151103122520.6971234e@nial.brq.redhat.com> In-Reply-To: <20151102174316.GD31786@stefanha-x1.localdomain> References: <1446047243-3221-1-git-send-email-mst@redhat.com> <20151102174316.GD31786@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] dataplane: simplify indirect descriptor read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, Stefan Hajnoczi , "Michael S. Tsirkin" On Mon, 2 Nov 2015 17:43:16 +0000 Stefan Hajnoczi wrote: > On Wed, Oct 28, 2015 at 05:48:02PM +0200, Michael S. Tsirkin wrote: > > Use address_space_read to make sure we handle the case of an indirect > > descriptor crossing DIMM boundary correctly. > > > > Signed-off-by: Michael S. Tsirkin > > --- > > > > Warning: compile-tested only. > > Test (with your follow-up patch squashed in) with 6 4KB seqeuential read > processes on running successfully. > > I didn't test the DIMM boundary case. Igor: what is the easiest way to > reproduce the DIMM boundary crossing? I've tested it, here is QEMU CLI: qemu-system-x86_64 -enable-kvm -enable-kvm -m 128M,slots=250,maxmem=32G -drive if=none,id=hd,file=rhel72,cache=none,aio=native,format=raw -device virtio-blk,drive=hd,scsi=off,config-wce=off,x-data-plane=on `for i in $(seq 0 15); do echo -n "-object memory-backend-ram,id=m$i,size=10M -device pc-dimm,id=dimm$i,memdev=m$i "; done` boot and then do: dd if=/dev/vda of=/dev/null bs=16M without fix it hangs either at boot time or when doing 'dd'