Skip to contentSkip to conversation

(TEST) memtest86+ & memtest86 & qemu 1.60

Qemu-devel Leonardo Marques de Souza 2 participants 4 messages Jul 29, 2004

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw

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

block.c +6 -2
diff -u -r1.10 block.c
@@ -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 - - - - -
- - - - - - - - - - - - - - - - -

Quoted 30 lines · Leonardo Marques de Souza

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
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 2 lines
"No, no, you're not thinking; you're just being logical"
Niels Bohr
#2 lore raw

Re: SPAM[RBL] Re: [Qemu-devel] (TEST) memtest86+ & memtest86 & qemu 1.60

Great!

Thanks André (and Jani ), it fix.

Quoted 11 lines · André Braga

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 - - - - -
- - - - - - - - - - - - - - - - -

#3 lore raw

Re: Re: SPAM[RBL] Re: [Qemu-devel] (TEST) memtest86+ & memtest86 & qemu 1.60

Cool :)

Keep on testing, Léo.

Quoted 4 lines · Leonardo Marques de Souza

Great!

Thanks André (and Jani ), it fix.

Signature · 3 lines
"I invented the term Object-Oriented, and I can tell you I did not
have C++ in mind"
Alan Kay