RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 815702 - RFE: generate man pages to describe valid keycodes
Summary: RFE: generate man pages to describe valid keycodes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.1
Assignee: Daniel Berrangé
QA Contact: Lili Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-24 10:11 UTC by Daniel Berrangé
Modified: 2018-04-10 10:35 UTC (History)
11 users (show)

Fixed In Version: libvirt-3.7.0-1.el7
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 10:33:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0704 0 None None None 2018-04-10 10:35:51 UTC

Comment 3 Gunannan Ren 2012-09-07 13:57:38 UTC
patch sent to upstream
https://www.redhat.com/archives/libvir-list/2012-September/msg00454.html

Comment 10 Daniel Berrangé 2017-04-25 20:22:18 UTC
Merged upstream in:

commit e6c3b59c193ec1d17d72b65d460a951227c12a72
Author: Daniel P. Berrange <berrange>
Date:   Fri Mar 3 12:43:51 2017 +0000

    Add ability to generate man page describing key code names & values
    
    Signed-off-by: Daniel P. Berrange <berrange>

will get it for free in 7.5 if we rebase.

Comment 12 Lili Zhu 2017-12-04 02:36:05 UTC
Verified this bug with libvirt-3.9.0-4.el7.x86_64:

There are 10 kinds of codesets,
linux, xt, atset1, atset2, atset3, os_x, xtkbd, win32, usb, rfb.
Furthermore, symbolic names of linux, osx and win32 codesets are also privides

The verfication steps are arranged as follows
(I) man virkeycode-* (* represents all the 10 codesets)
The man pages of all the codesets exist

(II) man virkeyname-* (* represents linux, osx, win32)
The man pages all the above 3 codesets exist

(III) Select some of the key code values, send them to the vm, check whether it
can behave just as the man pages noted.
A. linux
# virsh send-key rhel74 --codeset linux 33 34 35
In guest, 'fgh' are printed

B. xt
# virsh send-key rhel74 --codeset xt 7 8 9
In guest, '678' are printed

C. atset1
# virsh send-key rhel74 --codeset atset1 54 17
In guest, 'W' are printed

D. atset2
# virsh send-key rhel74 --codeset atset2 42 41 43
In guest, 'v f' are printed

E. atset3
# virsh send-key rhel74 --codeset atset3 99
In the terminal of guest, the last command line can be shown

F. os_x
# virsh send-key rhel74 --codeset os_x 30 33
In guest, '][' are printed

G. xtkbd
# virsh send-key rhel74 --codeset xt_kbd 327
In the terminal of guest, cursor will shift to the beginning of the cmdline

H. win32
# virsh send-key rhel74 --codeset win32 96 97 98
In guest, '012' are printed

J. usb
1. Add a panic device into the guest
...
 <panic model='isa'>
      <address type='isa' iobase='0x505'/>
 </panic>
...
2. In guest,open the magic SysRq keys:
# echo 1 > /proc/sys/kernel/sysrq

3. Send alt-sysrq-c
# virsh send-key rhel74 --codeset usb 230 70 6

4. check the guest status
# virsh domstate rhel74 --reason
shut off (crashed)

K. rfb
# virsh send-key rhel74 --codeset rfb 56 2
In guest, the cursor will be on the 1st tab of terminal

All the selected key code values behave just as the man pages noted after sending them to the vm. 

Automation is the only way to verify all the key code values and their combinations. And it is our next step.
For now, we are going to move this bug to verified.

Comment 16 errata-xmlrpc 2018-04-10 10:33:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:0704


Note You need to log in before you can comment on or make changes to this bug.