qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1891830] [NEW] msmouse serial mouse emulation broken? No id byte se


From: Michael Slade
Subject: [Bug 1891830] [NEW] msmouse serial mouse emulation broken? No id byte sent on reset
Date: Mon, 17 Aug 2020 01:32:53 -0000

Public bug reported:

I took a shot at getting Windows 1.01 working.  It doesn't support a
PS/2 mouse out-of-the-box but does support MS serial mice.  It doesn't
seem to detect qemu's emulated msmouse.

When I run this command:

> qemu-system-i386 -nodefaults -hda my_windows1_hd.qcow2 -vga std
-serial msmouse -trace enable='serial*'  -icount shift=10,align=on

I get this output (edited):

251908@1597626456.800452:serial_ioport_write write addr 0x04 val 0x01
251908@1597626456.800460:serial_ioport_read read addr 0x00 val 0x00
251908@1597626456.800462:serial_ioport_read read addr 0x00 val 0x00

[snip]

251908@1597626456.961641:serial_ioport_read read addr 0x00 val 0x00
251908@1597626456.961642:serial_ioport_read read addr 0x00 val 0x00
251908@1597626456.961644:serial_ioport_read read addr 0x00 val 0x00
251908@1597626456.961647:serial_ioport_write write addr 0x04 val 0x0b
251908@1597626456.961648:serial_ioport_read read addr 0x05 val 0x60
251908@1597626456.961684:serial_ioport_read read addr 0x05 val 0x60
251908@1597626456.961685:serial_ioport_read read addr 0x05 val 0x60

[snip]

251908@1597626457.045894:serial_ioport_read read addr 0x05 val 0x60
251908@1597626457.045895:serial_ioport_read read addr 0x05 val 0x60
251908@1597626457.045897:serial_ioport_read read addr 0x05 val 0x60
251908@1597626457.045932:serial_ioport_read read addr 0x00 val 0x00

The write of 0x01 and then 0x0b to reg 0x04 is the guest turning the RTS
line off then on.  A real mouse will respond to this by sending 0x4d,
which is how the guest detects the mouse.

Reproducible in current stable-4.2 and 5.0 (debian's build).  I am able
to get the guest to use a real passed-through serial mouse (with a minor
hack, separate bug filed for this)

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: msmouse

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

Title:
  msmouse serial mouse emulation broken? No id byte sent on reset

Status in QEMU:
  New

Bug description:
  I took a shot at getting Windows 1.01 working.  It doesn't support a
  PS/2 mouse out-of-the-box but does support MS serial mice.  It doesn't
  seem to detect qemu's emulated msmouse.

  When I run this command:

  > qemu-system-i386 -nodefaults -hda my_windows1_hd.qcow2 -vga std
  -serial msmouse -trace enable='serial*'  -icount shift=10,align=on

  I get this output (edited):

  251908@1597626456.800452:serial_ioport_write write addr 0x04 val 0x01
  251908@1597626456.800460:serial_ioport_read read addr 0x00 val 0x00
  251908@1597626456.800462:serial_ioport_read read addr 0x00 val 0x00

  [snip]

  251908@1597626456.961641:serial_ioport_read read addr 0x00 val 0x00
  251908@1597626456.961642:serial_ioport_read read addr 0x00 val 0x00
  251908@1597626456.961644:serial_ioport_read read addr 0x00 val 0x00
  251908@1597626456.961647:serial_ioport_write write addr 0x04 val 0x0b
  251908@1597626456.961648:serial_ioport_read read addr 0x05 val 0x60
  251908@1597626456.961684:serial_ioport_read read addr 0x05 val 0x60
  251908@1597626456.961685:serial_ioport_read read addr 0x05 val 0x60

  [snip]

  251908@1597626457.045894:serial_ioport_read read addr 0x05 val 0x60
  251908@1597626457.045895:serial_ioport_read read addr 0x05 val 0x60
  251908@1597626457.045897:serial_ioport_read read addr 0x05 val 0x60
  251908@1597626457.045932:serial_ioport_read read addr 0x00 val 0x00

  The write of 0x01 and then 0x0b to reg 0x04 is the guest turning the
  RTS line off then on.  A real mouse will respond to this by sending
  0x4d, which is how the guest detects the mouse.

  Reproducible in current stable-4.2 and 5.0 (debian's build).  I am
  able to get the guest to use a real passed-through serial mouse (with
  a minor hack, separate bug filed for this)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]