From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BqDsJ-00010y-2I for qemu-devel@nongnu.org; Thu, 29 Jul 2004 12:35:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BqDsI-00010C-2u for qemu-devel@nongnu.org; Thu, 29 Jul 2004 12:35:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqDsH-0000zY-To for qemu-devel@nongnu.org; Thu, 29 Jul 2004 12:35:21 -0400 Received: from [64.233.170.193] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BqDp0-0005iF-KA for qemu-devel@nongnu.org; Thu, 29 Jul 2004 12:31:58 -0400 Received: by mproxy.gmail.com with SMTP id 73so15906rnk for ; Thu, 29 Jul 2004 09:31:58 -0700 (PDT) Message-ID: <2ad73a04072909317831ef00@mail.gmail.com> Date: Thu, 29 Jul 2004 13:31:58 -0300 From: =?ISO-8859-1?Q?Andr=E9_Braga?= Subject: Re: [Qemu-devel] (TEST) memtest86+ & memtest86 & qemu 1.60 In-Reply-To: <4109138A.8040108@ambientebrasil.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <4109138A.8040108@ambientebrasil.com.br> 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 There's a bug in the floppy emulation code. And this patch (by Jani Monoses) is supposed to fix it (I guess... Unless the bug in memtest is triggered by a different event than failing to read the last sectors, but that's highly unlikely since it works OK from the ISO) - - - - - - - - - - - - - - - - - - - cut: fbblockpatch.diff - - - - - - - - - - - - - - - - - - - - - - Index: block.c =================================================================== RCS file: /cvsroot/qemu/qemu/block.c,v retrieving revision 1.10 diff -u -r1.10 block.c --- block.c 14 Jul 2004 17:20:30 -0000 1.10 +++ block.c 23 Jul 2004 15:12:21 -0000 @@ -311,6 +311,7 @@ { int ret, n, fd; int64_t offset; + int bytes = 512; if (!bs->inserted) return -1; @@ -320,7 +321,7 @@ fd = bs->cow_fd; offset = bs->cow_sectors_offset; } else if (sector_num == 0 && bs->boot_sector_enabled) { - memcpy(buf, bs->boot_sector_data, 512); + memcpy(buf, bs->boot_sector_data, bytes); n = 1; goto next; } else { @@ -335,8 +336,11 @@ offset += sector_num * 512; lseek64(fd, offset, SEEK_SET); ret = read(fd, buf, n * 512); + if (ret != n * 512) { - return -1; + if (ret == -1) + return -1; + bytes = ret; } } next: - - - - - - - - - - - - - - - - - - - cut: fbblockpatch.diff - - - - - - - - - - - - - - - - - - - - - - On Thu, 29 Jul 2004 12:11:06 -0300, Leonardo Marques de Souza wrote: > Hello, > > i tested this programs: > > - Memtest86+ v1.20 (www.memtest.org) > - Memtest86 v3.1a (www.memtest86.com) > > Well, booting the 'iso' version of this programs all goes fine: > > - qemu -cdrom memtest86+1.20.iso (OK) > - qemu -cdrom memtest86_3.1a.iso (OK) > > Humm... interesting thing... the L1 cache is more slow than L2 cache. > This "PentiumPro" cpu need to switch this caches. hehe :P > > But using floppy version i got some "EIP" errors. > (if you wait 10 seconds this show more errors) > - qemu -fda memtest86+-1.20.bin > - qemu -fda memtest86_3.1a.bin > > using -isa or -stdvga i got "EIP" erros more "fast" > > i tested other version of memtest (normal and plus) and the same error > happens. > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > -- "No, no, you're not thinking; you're just being logical" Niels Bohr