Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1512762

Summary: ps2 keyboard missing some keys
Product: Red Hat Enterprise Linux 7 Reporter: Guo, Zhiyi <zhguo>
Component: qemu-kvm-rhevAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED CURRENTRELEASE QA Contact: Guo, Zhiyi <zhguo>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: chayang, jinzhao, juzhang, knoel, michen, virt-maint, zhguo
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 05:35:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guo, Zhiyi 2017-11-14 02:30:11 UTC
Description of problem:
ps2 keyboard missing some keys

host & guest: 3.10.0-781.el7.x86_64
qemu-kvm-rhev-2.10.0-5.el7.x86_64

How reproducible:
100%


Steps to Reproduce:
1.Boot a rhel7.5 guest with default ps2 keyboard:
/usr/libexec/qemu-kvm -name input-test -m 2G \
-cpu qemu64,check \
-smp 2 \
-device cirrus-vga \
-netdev tap,id=idinWyYp,vhost=on -device virtio-net-pci,mac=42:ce:a9:d2:4d:d7,id=idlbq7eA,netdev=idinWyYp \
-uuid 215e11b2-a869-41b5-91cd-6a32a907be7e \
-device ich9-usb-uhci6 \
-drive file=/home/rhel75.qcow2,if=none,id=drive-scsi-disk0,format=qcow2,cache=none,werror=stop,rerror=stop  -device ide-drive,drive=drive-scsi-disk0 \
-qmp unix:/tmp/input-port,server,nowait \
-monitor stdio \
2.Inside guest, open a gnome-terminal and execute: xev -event keyboard
3.Input key 'KATAKANA' and 'HIRAGANA'

Actual results:
Nothing output from xev

Expected results:
output of xev:
KeyPress event, serial 37, synthetic NO, window 0x2a00001,
    root 0x2f3, subw 0x0, time 2123986456, (767,421), root:(832,537),
    state 0x0, keycode 98 (keysym 0xff26, Katakana), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 38, synthetic NO, window 0x2a00001,
    root 0x2f3, subw 0x0, time 2123986556, (767,421), root:(832,537),
    state 0x0, keycode 98 (keysym 0xff26, Katakana), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
KeyPress event, serial 47, synthetic NO, window 0x2a00001,
    root 0x2f3, subw 0x0, time 2123988255, (767,421), root:(832,537),
    state 0x0, keycode 99 (keysym 0xff25, Hiragana), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x2a00001,
    root 0x2f3, subw 0x0, time 2123988356, (767,421), root:(832,537),
    state 0x0, keycode 99 (keysym 0xff25, Hiragana), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


Additional info:

Comment 2 Gerd Hoffmann 2018-06-13 11:22:08 UTC
Can you retest with a 2.12 build please?  I think this is fixed meanwhile.

Comment 3 Guo, Zhiyi 2018-07-30 05:34:09 UTC
Try on qemu-kvm-rhev-2.12.0-8.el7.x86_64 and qemu-kvm-rhev-2.12.0-1.el7.x86_64, I can input these keys inside guest now