QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run
@ 2019-03-09 20:02 John M
  2019-08-17 21:27 ` [Qemu-devel] [Bug 1819289] " Brad Parker
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: John M @ 2019-03-09 20:02 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

The last version of QEMU I have been able to run Windows 95 or Windows
98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
either not install or will not run 95 or 98 at all. I have tried every
combination of options like isapc or no isapc, cpu pentium  or cpu as
486. Tried different memory configurations, but they just don't work
anymore.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
@ 2019-08-17 21:27 ` " Brad Parker
  2019-08-19 17:26 ` Brad Parker
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-17 21:27 UTC (permalink / raw)
  To: qemu-devel

I was able to get both running on 3.11.0, but something broke again by
the time I re-tested on 4.0.0. 98 seems to work on 4.0 at least, but 95
just reboots infinitely after trying to boot from HDD after the initial
setup. I tried searching their mailing list and asking around but nobody
seems interested in fixing it.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
  2019-08-17 21:27 ` [Qemu-devel] [Bug 1819289] " Brad Parker
@ 2019-08-19 17:26 ` Brad Parker
  2019-08-19 17:55 ` Philippe Mathieu-Daudé
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-19 17:26 UTC (permalink / raw)
  To: qemu-devel

Whoops, 3.11.0 does not exist. Went back and did a full bisect. 3.0.0
works fine, and the breakage starts before 3.0.1 and 3.1.0 was released,
specifically, with commit 05306935b1ae49107c2dc2f301574dd6c29b6838.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
  2019-08-17 21:27 ` [Qemu-devel] [Bug 1819289] " Brad Parker
  2019-08-19 17:26 ` Brad Parker
@ 2019-08-19 17:55 ` Philippe Mathieu-Daudé
  2019-08-19 18:20 ` Brad Parker
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-08-19 17:55 UTC (permalink / raw)
  To: qemu-devel

On 8/19/19 7:26 PM, Brad Parker wrote:
> Whoops, 3.11.0 does not exist. Went back and did a full bisect. 3.0.0
> works fine, and the breakage starts before 3.0.1 and 3.1.0 was released,
> specifically, with commit 05306935b1ae49107c2dc2f301574dd6c29b6838.

This commit is migration related. Are you trying to restore/launch a
pre-installed image?

John reported "either not install or will not run 95 or 98 at all" but
you report "95 just reboots infinitely after trying to boot from HDD
after the initial setup." which is slighly different.

What host/os/distrib are you using?

What command line are you using to start QEMU?

If you are using migration, I wonder if the following commit might
affect here:

commit 341ba0df4c69269cac839ddbacb2a0ca641a856d
Author: Peter Maydell <peter.maydell@linaro.org>
Date:   Tue Sep 25 17:19:24 2018 +0100

    migration/ram.c: Avoid taking address of fields in packed MultiFDInit_t struct
    
    Taking the address of a field in a packed struct is a bad idea, because
    it might not be actually aligned enough for that pointer type (and
    thus cause a crash on dereference on some host architectures). Newer
    versions of clang warn about this:
    
    Avoid the bug by not using the "modify in place" byteswapping
    functions.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (2 preceding siblings ...)
  2019-08-19 17:55 ` Philippe Mathieu-Daudé
@ 2019-08-19 18:20 ` Brad Parker
  2019-08-20  0:21 ` Brad Parker
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-19 18:20 UTC (permalink / raw)
  To: qemu-devel

I am not using anything related to migration, just launching with a
simple flat qcow2 file, no snapshots, backing stores or anything like
that.

The host is Archlinux x64 but I'm running inside of a docker container
that runs Ubuntu 18.04.

The command-line is:

qemu-system-i386 -spice port=5800,disable-ticketing=on -cpu pentium -m
128 -vga std -no-kvm -hda Win95C.qcow2 -nodefaults -no-hpet -no-acpi
-cdrom Win95C.iso -nodefaults -M isapc -monitor stdio

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (3 preceding siblings ...)
  2019-08-19 18:20 ` Brad Parker
@ 2019-08-20  0:21 ` Brad Parker
  2019-08-20  9:08 ` Dr. David Alan Gilbert
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-20  0:21 UTC (permalink / raw)
  To: qemu-devel

Just FYI that was the second bisect I had to do, the first time it
produced an even more unrelated commit, so I assumed I must have done
something wrong... apparently that is still the case. After trying the
"working" commit outside of the Docker container, it now does not
work... so I'm at a loss as to how to reliably bisect I guess. Never had
any issues with other projects doing it though.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (4 preceding siblings ...)
  2019-08-20  0:21 ` Brad Parker
@ 2019-08-20  9:08 ` Dr. David Alan Gilbert
  2019-08-20 16:45 ` Brad Parker
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Dr. David Alan Gilbert @ 2019-08-20  9:08 UTC (permalink / raw)
  To: qemu-devel

Yep, these types of bugs don't necessarily bisect cleanly if they're todo with code layout or dirty memory.
Still, it's good to keep a note of the earliest patches that you find a failure on - because then we know it must be somewhere before that.

I remember there was a problem reported booting FreeDOS as well; and
I've got to wonder if it's related.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (5 preceding siblings ...)
  2019-08-20  9:08 ` Dr. David Alan Gilbert
@ 2019-08-20 16:45 ` Brad Parker
  2019-08-20 16:55 ` Peter Maydell
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-20 16:45 UTC (permalink / raw)
  To: qemu-devel

Hopefully third time's the charm. I ran yet another bisect, between
2.5.0 (working) and 2.11.0 (not working), this time reinstalling the
entire OS from scratch with a blank disk every single time. Results:

$ git bisect good
e3af7c788b73a6495eb9d94992ef11f6ad6f3c56 is the first bad commit
commit e3af7c788b73a6495eb9d94992ef11f6ad6f3c56
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:   Wed Apr 26 13:59:34 2017 +0200

    target/i386: introduce x86_ld*_code
    
    These take care of advancing s->pc, and will provide a unified point
    where to check for the 15-byte instruction length limit.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

 target/i386/translate.c | 228 ++++++++++++++++++++++++++----------------------
 1 file changed, 125 insertions(+), 103 deletions(-)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (6 preceding siblings ...)
  2019-08-20 16:45 ` Brad Parker
@ 2019-08-20 16:55 ` Peter Maydell
  2019-08-20 21:05 ` Brad Parker
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Peter Maydell @ 2019-08-20 16:55 UTC (permalink / raw)
  To: qemu-devel

If your bisect hit e3af7c788b73a6495 can you try it with
cfcca361d77142f25f applied on top? That commit fixed a bug in
e3af7c788b73a6495 which may be throwing off your bisection results.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (7 preceding siblings ...)
  2019-08-20 16:55 ` Peter Maydell
@ 2019-08-20 21:05 ` Brad Parker
  2019-08-20 21:43 ` Brad Parker
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-20 21:05 UTC (permalink / raw)
  To: qemu-devel

e3af7c788b73a6495 was indeed one of the bad commits I tested during the
bisect. If I apply cfcca361d77142f25f on top of it, Windows starts up
normally instead of giving me a BSOD on bootup.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (8 preceding siblings ...)
  2019-08-20 21:05 ` Brad Parker
@ 2019-08-20 21:43 ` Brad Parker
  2019-08-20 22:31   ` Aleksandar Markovic
  2019-08-21  3:42 ` Brad Parker
                   ` (4 subsequent siblings)
  14 siblings, 1 reply; 18+ messages in thread
From: Brad Parker @ 2019-08-20 21:43 UTC (permalink / raw)
  To: qemu-devel

So it looks like even though that commit fixed it, it seems to break
again (differently) in 3.0.0, so I'll need to do another bisect between
cfcca36 and v3.0.0 then I guess. And keep working my way up to master as
well.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-08-20 21:43 ` Brad Parker
@ 2019-08-20 22:31   ` Aleksandar Markovic
  2019-08-21 13:59     ` Maxim Levitsky
  0 siblings, 1 reply; 18+ messages in thread
From: Aleksandar Markovic @ 2019-08-20 22:31 UTC (permalink / raw)
  To: Bug 1819289; +Cc: qemu-devel

20.08.2019. 23.56, "Brad Parker" <1819289@bugs.launchpad.net> је написао/ла:
>
> So it looks like even though that commit fixed it, it seems to break
> again (differently) in 3.0.0, so I'll need to do another bisect between
> cfcca36 and v3.0.0 then I guess. And keep working my way up to master as
> well.
>
> --

At least you will have an interesting debugging story to tell afterwards. I
wish you luck!

Aleksandar

> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1819289
>
> Title:
>   Windows 95 and Windows 98 will not install or run
>
> Status in QEMU:
>   New
>
> Bug description:
>   The last version of QEMU I have been able to run Windows 95 or Windows
>   98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
>   either not install or will not run 95 or 98 at all. I have tried every
>   combination of options like isapc or no isapc, cpu pentium  or cpu as
>   486. Tried different memory configurations, but they just don't work
>   anymore.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions
>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (9 preceding siblings ...)
  2019-08-20 21:43 ` Brad Parker
@ 2019-08-21  3:42 ` Brad Parker
  2019-08-21 12:53 ` Brad Parker
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-21  3:42 UTC (permalink / raw)
  To: qemu-devel

Just finished a bisect between cfcca36 (working) and current master (not
working), here is the result:

$ git bisect bad
cd1bfd5ef336166b275a09dc9842542bf5e63ae3 is the first bad commit
commit cd1bfd5ef336166b275a09dc9842542bf5e63ae3
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Wed Jun 20 12:17:34 2018 +0200

    seabios: update bios and vgabios binaries
    
    Adds two new vgabios binaries, for ramfb and bochs-display.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

 pc-bios/bios-256k.bin             | Bin 262144 -> 262144 bytes
 pc-bios/bios.bin                  | Bin 131072 -> 131072 bytes
 pc-bios/vgabios-bochs-display.bin | Bin 0 -> 27648 bytes
 pc-bios/vgabios-cirrus.bin        | Bin 38400 -> 38400 bytes
 pc-bios/vgabios-qxl.bin           | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-ramfb.bin         | Bin 0 -> 28160 bytes
 pc-bios/vgabios-stdvga.bin        | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-virtio.bin        | Bin 38912 -> 38912 bytes
 pc-bios/vgabios-vmware.bin        | Bin 38912 -> 38912 bytes
 pc-bios/vgabios.bin               | Bin 38400 -> 38400 bytes
 10 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 pc-bios/vgabios-bochs-display.bin
 create mode 100644 pc-bios/vgabios-ramfb.bin

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (10 preceding siblings ...)
  2019-08-21  3:42 ` Brad Parker
@ 2019-08-21 12:53 ` Brad Parker
  2019-08-21 13:48 ` Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-21 12:53 UTC (permalink / raw)
  To: qemu-devel

I tried reverting that commit on top of master but it did not help, so
I'm guessing it broke yet again (differently) somewhere else. I'll try
reverting cd1bfd5 on top of the very next commit and bisect from there
to master, and see where that takes me.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (11 preceding siblings ...)
  2019-08-21 12:53 ` Brad Parker
@ 2019-08-21 13:48 ` Philippe Mathieu-Daudé
  2019-08-22  0:02 ` Philippe Mathieu-Daudé
  2019-08-22  1:14 ` Brad Parker
  14 siblings, 0 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-08-21 13:48 UTC (permalink / raw)
  To: qemu-devel

> cd1bfd5ef336166b275a09dc9842542bf5e63ae3 is the first bad commit

Unfortunately this is a commit related to SeaBIOS submodule.
This commit only update the built BIOS roms.

The commits before this one are the ones modifying SeaBIOS, justifying
roms to be rebuilt:

eda553a442 seabios: enable ide dma
429d3ae2c8 seabios: update submodule to release 1.11.2

The first one (enable ide dma) is a change in the config.
You can rebuild the BIOS image and bisect around this commit.

You can rebuild the SeaBIOS image running this command in QEMU source
repository:

  $ make -C roms bios

This will update 'pc-bios/bios.bin' which you use while bisecting.

The second one update the SeaBIOS submodule from commit 0551a4be2c to
commit f9626ccb91.

These are not so many commits, so the bisect won't be painful:

$ git log --oneline 0551a4be2~..f9626ccb91
f9626cc (tag: rel-1.11.2) cbvga_set_mode: refine clear display logic
f88297a qemu: add qemu ramfb support
a2e4001 vgasrc: add allocate_pmm()
17b01f4 pmm: use tmp zone on oom
44b17d0 bochs_display_setup: return error on failure
4ba61fa cbvga_set_mode: disable clearmem in windows x86 emulator.
dd69189 cbvga_list_modes: don't list current mode twice
5f0e7c9 cbvga_setup_modes: use real mode number instead of 0x140
961f67c qemu: add bochs-display support
767365e cbvga: factor out cbvga_setup_modes()
7906460 optionrom: enable non-vga display devices
0551a4b (tag: rel-1.11.1) paravirt: Only enable sercon in NOGRAPHIC mode if no other console specified

I recommend doing your bisection using 2 terminals:

- one in QEMU source, running 'make -C roms bios' to rebuild 'pc-
bios/bios.bin' and run QEMU installing your image,

- one in roms/seabios/ where you run the 'git bisect' commands.

Note, you don't have to rebuild QEMU.

Alternatively, using a single terminal, you can stand in the
roms/seabios/ directory, bisect and run 'make -C .. bios'. In this case
it might be useful to run QEMU with -L ../../pc-bios to specify the path
to the generated bios.bin.

You are close, good luck!

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-08-20 22:31   ` Aleksandar Markovic
@ 2019-08-21 13:59     ` Maxim Levitsky
  0 siblings, 0 replies; 18+ messages in thread
From: Maxim Levitsky @ 2019-08-21 13:59 UTC (permalink / raw)
  To: Aleksandar Markovic, Bug 1819289; +Cc: qemu-devel

On Wed, 2019-08-21 at 00:31 +0200, Aleksandar Markovic wrote:
> 20.08.2019. 23.56, "Brad Parker" <1819289@bugs.launchpad.net> је написао/ла:
> > 
> > So it looks like even though that commit fixed it, it seems to break
> > again (differently) in 3.0.0, so I'll need to do another bisect between
> > cfcca36 and v3.0.0 then I guess. And keep working my way up to master as
> > well.
> > 
> > --
> 
> At least you will have an interesting debugging story to tell afterwards. I
> wish you luck!

Does disabling the boot logo help? I do have a working win98 VM here 
(nostaligia reasons, that was my first and last primary OS prior to me
switching to Linux) and what you describe seems to be the hang during the
win98 boot logo?

If it is disabled (logo=0 in msdos.sys, under [Options])
or if you quickly press escape while the logo just showed up, the vm won't hang,
and work normally.

The funniest thing is that when _KVM_ is disabled (that is TCG is used instead), the bug doesn't happen,
so it might instruction emulation bug in KVM. Or something timing related.

I also usually see even a message from the in-kernel instruction decoder about
'cmpchg decoded as nop' or something like that, but don't seem to see it anymore on current kernel.

I just verified these claims with qemu-4.1.0, kernel 5.3.0-rc4, and an win98 (although I only booted it with and without logo few times,
and didn't do an install)

Speaking of other issue you will face with win98 is that it doesn't detect the PnP bios by default, so it doesn't see any devices qemu exposes
on the PCI bus. Thankfully this can be fixed by explicitly overriding the driver
http://computernewb.com/wiki/Install_QEMU_Tablet_Driver_on_Windows_98

For other hardware I had luck with pcnet network card, AC97 sound (SB16 works too but it tends to block mouse during the sound,
probably some PIO/interrupt whatever stuff that is very emulation heavy. For AC97 it was really hard to find a working driver,
but eventually I found some Win95 old style driver (not the newer WDM drivers that just don't work).

It was really fun weekend, few months ago when I set the thing up :-)

Best regards,
	Maxim Levitsky



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (12 preceding siblings ...)
  2019-08-21 13:48 ` Philippe Mathieu-Daudé
@ 2019-08-22  0:02 ` Philippe Mathieu-Daudé
  2019-08-22  1:14 ` Brad Parker
  14 siblings, 0 replies; 18+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-08-22  0:02 UTC (permalink / raw)
  To: qemu-devel

After hours bisecting various QEMU/SeaBIOS combinations, Brad figured
out a new commit:

0a7fa00a13f0852ec6fa83ab987a5ee7978d9867 is the first bad commit
Author: Emilio G. Cota <cota@braap.org>
Date:   Mon Aug 13 20:52:26 2018 -0400

    configure: enable mttcg for i386 and x86_64

Note 1: Brad was not using '-M isapc'.
Note 2: Brad was using the pc-bios/ folder checkout'd at v4.1.0 or 33f18cf7dc to avoid the SeaBIOS issues reported previously

Brad could succeed booting QEMU using '-accel thread=single' on
0a7fa00a13.


** Tags added: mttcg

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [Qemu-devel] [Bug 1819289] Re: Windows 95 and Windows 98 will not install or run
  2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
                   ` (13 preceding siblings ...)
  2019-08-22  0:02 ` Philippe Mathieu-Daudé
@ 2019-08-22  1:14 ` Brad Parker
  14 siblings, 0 replies; 18+ messages in thread
From: Brad Parker @ 2019-08-22  1:14 UTC (permalink / raw)
  To: qemu-devel

Here is the exact working command line I used for Windows 95C (OSR2.5):

qemu-system-i386 -cpu pentium -m 128 -vga std -no-kvm -hda
~/Win95C.qcow2 -nodefaults -no-hpet -no-acpi -nodefaults -monitor stdio
-sdl -boot menu=on,order=c,splash-time=2000 -accel tcg,thread=single

To install the OS I simply added -cdrom and -fda, but everything else
stayed the same.

This was using the latest master (33f18cf, after v4.1.0) and its
included bios binaries.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1819289

Title:
  Windows 95 and Windows 98 will not install or run

Status in QEMU:
  New

Bug description:
  The last version of QEMU I have been able to run Windows 95 or Windows
  98 on was 2.7 or 2.8. Recent versions since then even up to 3.1 will
  either not install or will not run 95 or 98 at all. I have tried every
  combination of options like isapc or no isapc, cpu pentium  or cpu as
  486. Tried different memory configurations, but they just don't work
  anymore.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1819289/+subscriptions


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, back to index

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09 20:02 [Qemu-devel] [Bug 1819289] [NEW] Windows 95 and Windows 98 will not install or run John M
2019-08-17 21:27 ` [Qemu-devel] [Bug 1819289] " Brad Parker
2019-08-19 17:26 ` Brad Parker
2019-08-19 17:55 ` Philippe Mathieu-Daudé
2019-08-19 18:20 ` Brad Parker
2019-08-20  0:21 ` Brad Parker
2019-08-20  9:08 ` Dr. David Alan Gilbert
2019-08-20 16:45 ` Brad Parker
2019-08-20 16:55 ` Peter Maydell
2019-08-20 21:05 ` Brad Parker
2019-08-20 21:43 ` Brad Parker
2019-08-20 22:31   ` Aleksandar Markovic
2019-08-21 13:59     ` Maxim Levitsky
2019-08-21  3:42 ` Brad Parker
2019-08-21 12:53 ` Brad Parker
2019-08-21 13:48 ` Philippe Mathieu-Daudé
2019-08-22  0:02 ` Philippe Mathieu-Daudé
2019-08-22  1:14 ` Brad Parker

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org qemu-devel@archiver.kernel.org
	public-inbox-index qemu-devel


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/ public-inbox