]> git.proxmox.com Git - mirror_qemu.git/commit
pckbd: PS/2 keyboard throttle
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 25 May 2021 18:14:35 +0000 (20:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 26 May 2021 09:30:22 +0000 (11:30 +0200)
commitd1e45668d2128b064e2cd8080ca662f9b0f33bd6
treee36b7e3cb09dbc9481012d6d624dd6f32b6b5c87
parentff6e1624b33dc40545fb19cb751ea68a565036fe
pckbd: PS/2 keyboard throttle

Limit the keyboard data rate to the serial link speed. Some old
DOS software relies on being able to read an incoming scan-code
more than once. After reading keyboard data from the i8042
controller, the guest software has 1ms to read the same data
again.

Use -global i8042.kbd-throttle=on to enable this feature.

To see how this patch works, start a FreeDOS 1.2 guest with the
qemu option -global i8042.kbd-throttle=on and open a text file
with the vim 7.3 32 bit for DOS executable. Then use the cursor
keys (not the cursor keys on the numeric keypad) to move through
the text. Without the kbd-throttle option enabled each keystroke
will move the cursor two positions.

Buglink: https://bugs.launchpad.net/bugs/1895363
Buglink: https://bugs.launchpad.net/bugs/1897568
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20210525181441.27768-6-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/pckbd.c