ui: normalize the 'sysrq' key into the 'print' key
commit80b857f0c6399570c5db06422d8b96690b522580
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Oct 2017 14:28:47 +0000 (19 15:28 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 23 Oct 2017 08:50:02 +0000 (23 10:50 +0200)
treee64c4d0aaf6c0d30b6eebb9cd44e4f3802b62f30
parent29fd23a579f65e73cf6a4ded1d8cd472caed1426
ui: normalize the 'sysrq' key into the 'print' key

The 'sysrq' key was mistakenly added to QEMU to deal with incorrect handling
of the 'print' key in the ps2 device:

  commit f2289cb6924afc97b2a75d21bfc9217024d11741
  Author: balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
  Date:   Wed Jun 4 10:14:16 2008 +0000

    Add sysrq to key names known by "sendkey".

    Adding sysrq keycode to the table enabling running sysrq debugging in
    the guest via the monitor sendkey command, like:

    (qemu) sendkey alt-sysrq-t

    Tested on x86-64 target and Linux guest.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
The ps2 device is now fixed wrt modifiers and the 'print' key. Further the
handling of the 'sysrq' key has some problems of its own, documented in the
previous commit. To cleanup this mess, we convert any use of 'sysrq' into
'print' prior to dispatching the event to device models.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20171019142848.572-9-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qapi/ui.json
ui/input.c