From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDk9O-0002Sg-6a for qemu-devel@nongnu.org; Tue, 01 Jul 2008 14:00:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDk9N-0002R7-JB for qemu-devel@nongnu.org; Tue, 01 Jul 2008 14:00:21 -0400 Received: from [199.232.76.173] (port=59806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDk9N-0002Qr-FV for qemu-devel@nongnu.org; Tue, 01 Jul 2008 14:00:21 -0400 Received: from yx-out-1718.google.com ([74.125.44.154]:19725) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDk9N-0004qt-Dx for qemu-devel@nongnu.org; Tue, 01 Jul 2008 14:00:21 -0400 Received: by yx-out-1718.google.com with SMTP id 3so450043yxi.82 for ; Tue, 01 Jul 2008 11:00:19 -0700 (PDT) Message-ID: Date: Tue, 1 Jul 2008 21:00:18 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] sparc dma length bug(and fix) seen with NetBSD In-Reply-To: <20080701102338.e756a168.cliff@snipe444.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080701102338.e756a168.cliff@snipe444.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 7/1/08, Cliff Wright wrote: > Using QEMU 0.9.1 for sparc emulation, a dma length bug is seen with NetBSD. > When an 8192 byte block is read to memory using dma into non-contiguous > memory, the 2nd 4k block of contiguous memory is also written to. > This is due to an incorrect variable being used for length. > See the attached patch. I see the same bug on subversion trunk. Excellent, with the patch in place I was able to install NetBSD 4.0 to hard disk and boot to the installed system! The only wart was that installer could not reboot the system, but that's probably a bug in OpenBIOS (need to make reboot HW MMIO mapping more robust).