qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 2858ab: ps2: set ps/2 output buffer size as t


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 2858ab: ps2: set ps/2 output buffer size as the same as ke...
Date: Mon, 19 May 2014 06:30:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 2858ab09e6f708e381fc1a1cc87e747a690c4884
      
https://github.com/qemu/qemu/commit/2858ab09e6f708e381fc1a1cc87e747a690c4884
  Author: Gonglei <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  ps2: set ps/2 output buffer size as the same as kernel

According to the PS/2 Mouse/Keyboard Protocol, the keyboard outupt buffer size
is 16 bytes. And the PS2_QUEUE_SIZE 256 was introduced in Qemu from the very
beginning.

When I started a  redhat5.6 32bit guest, meanwhile tapped the keyboard as 
quickly as
possible, the screen would show me "i8042.c: No controller found". As a result,
I couldn't use the keyboard in the VNC client.

Previous discussion about the issue in maillist:
http://thread.gmane.org/gmane.comp.emulators.qemu/43294/focus=47180

This patch has been tested on redhat5.6 32-bit/suse11sp3 64-bit guests.
More easy meathod to reproduce:
1.boot a guest with libvirt.
2.connect to VNC client.
3.as you see the BIOS, bootloader, Linux booting, run the follow simply shell 
script:
for((i=0;i<10000000;i++)) do virsh send-key redhat5.6 KEY_A; done

Actual results:
dmesg show "i8042.c: No controller found." And the keyboard is out of work.

Signed-off-by: Gonglei <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 02aa76c2ba5df8db7c968d92959af2a7c35690a8
      
https://github.com/qemu/qemu/commit/02aa76c2ba5df8db7c968d92959af2a7c35690a8
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M include/ui/input.h
    M ui/Makefile.objs
    A ui/input-keymap.c
    M ui/input-legacy.c

  Log Message:
  -----------
  input: key mapping helpers

Add helper functions to translate KeyValue (qapi key representation)
into other representations: traditional qemu key numbers, qapi key
codes (Q_KEY_CODE_*) and scancode sequences.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 528728fd93df348f9003d1067fb26e79f377bfa9
      
https://github.com/qemu/qemu/commit/528728fd93df348f9003d1067fb26e79f377bfa9
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M include/ui/input.h
    M ui/input.c

  Log Message:
  -----------
  input: add qemu_input_handler_deactivate

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: ce53f2f98faa2f5aff3e7c841a12be187293db0d
      
https://github.com/qemu/qemu/commit/ce53f2f98faa2f5aff3e7c841a12be187293db0d
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M ui/input-legacy.c

  Log Message:
  -----------
  input: use KeyValue directly in sendkey monitor command

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 66e6536e0cdc8c1137230b1b935a5af693b5d9ca
      
https://github.com/qemu/qemu/commit/66e6536e0cdc8c1137230b1b935a5af693b5d9ca
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  input: switch ps/2 kbd to new input api

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 2a766d294ae0d4d2e9b178ce0b9a966bc678e7e6
      
https://github.com/qemu/qemu/commit/2a766d294ae0d4d2e9b178ce0b9a966bc678e7e6
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/input/ps2.c

  Log Message:
  -----------
  input: switch ps/2 mouse to new input api

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 65e7545ea3c65a6468fb59418a6dbe66ef71d6d1
      
https://github.com/qemu/qemu/commit/65e7545ea3c65a6468fb59418a6dbe66ef71d6d1
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/char/escc.c
    M trace-events

  Log Message:
  -----------
  input: switch sparc32 kbd to new input api

Nasty 0xe0 logic is gone.  We map through QKeyCode now, giving us a
nice, readable mapping table.

Quick smoke test in OpenFirmware looks ok.  Careful check from arch
maintainers would be very nice, especially on the capslock and numlock
logic.  I'm not fully sure whenever I got it translated correctly and
also what it is supposed to do in the first place ...

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 2ada510698acb68399f4b356386c2807cbac3b60
      
https://github.com/qemu/qemu/commit/2ada510698acb68399f4b356386c2807cbac3b60
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M ui/input-keymap.c

  Log Message:
  -----------
  input: remove sparc keymap hack

With sparc keyboard going directly from QKeyValue to sparc keycodes
this should not be needed any more.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 97256073b1a51ed0deb0bac7d4b5d88a90cc2939
      
https://github.com/qemu/qemu/commit/97256073b1a51ed0deb0bac7d4b5d88a90cc2939
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/char/escc.c

  Log Message:
  -----------
  input: sparc32 kbd: fix some key mappings

Reported-by: Olivier Danet <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 59e7a130054b55fe15cdfdebf284332b04d990ef
      
https://github.com/qemu/qemu/commit/59e7a130054b55fe15cdfdebf284332b04d990ef
  Author: Gerd Hoffmann <address@hidden>
  Date:   2014-05-16 (Fri, 16 May 2014)

  Changed paths:
    M hw/char/escc.c

  Log Message:
  -----------
  input: sparc32 kbd: claim en-us layout

Reported-by: Olivier Danet <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 5bc8f026dd5eb76c89395933d38dc5b0cebf5763
      
https://github.com/qemu/qemu/commit/5bc8f026dd5eb76c89395933d38dc5b0cebf5763
  Author: Peter Maydell <address@hidden>
  Date:   2014-05-19 (Mon, 19 May 2014)

  Changed paths:
    M hw/char/escc.c
    M hw/input/ps2.c
    M include/ui/input.h
    M trace-events
    M ui/Makefile.objs
    A ui/input-keymap.c
    M ui/input-legacy.c
    M ui/input.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-8' into staging

Input code update:
 - add keycode mapping helpers to core.
 - start switching devices to new input api.
 - misc bugfixes.

# gpg: Signature made Fri 16 May 2014 07:43:45 BST using RSA key ID D3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg:                 aka "Gerd Hoffmann <address@hidden>"
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>"

* remotes/kraxel/tags/pull-input-8:
  input: sparc32 kbd: claim en-us layout
  input: sparc32 kbd: fix some key mappings
  input: remove sparc keymap hack
  input: switch sparc32 kbd to new input api
  input: switch ps/2 mouse to new input api
  input: switch ps/2 kbd to new input api
  input: use KeyValue directly in sendkey monitor command
  input: add qemu_input_handler_deactivate
  input: key mapping helpers
  ps2: set ps/2 output buffer size as the same as kernel

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/6a23082b4eca...5bc8f026dd5e

reply via email to

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