I see this happening in ppc64le and x86_64 with QEMU
v2.11.0-1684-ga6e0344fa0. The keystrokes are being sent to tty1:

in x86_64:

./v2.11.0-1684-ga6e0344fa0/bin/qemu-system-x86_64 -enable-kvm -m 512
-kernel vmlinuz -initrd initramfs.img -chardev
serial,id=s1,path=/dev/pts/10 -mon chardev=s1 -qmp
tcp:localhost:4444,server,nowait -vga none -nographic -append
"console=ttyS0 i8042.debug"

QEMU 2.11.50 monitor - type 'help' for more information                    
(qemu) sendkey a
(qemu) sendkey b
(qemu) sendkey c
(qemu) sendkey ret

# cat /dev/tty1

same thing with input-send-event:

{"events": [{ "type": "key", "data" : { "down": true, "key": {"type": "qcode", 
"data": "a" } } }]}
{"events": [{ "type": "key", "data" : { "down": true, "key": {"type": "qcode", 
"data": "ret" } } }]}

# cat /dev/tty1

I'm not sure what is the expected behavior when using two input sources in this 
way (serial line + PS/2 keyboard). I'm inclined to say that the keys should 
indeed not be seen in the serial console.

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  [Qemu-ppc] sendkey is not working for any of the keystrokes

Status in QEMU:

Bug description:
  sendkey option is not working for any of the keystrokes in ppc64le,

  Qemu version:
  # qemu-img --version
  qemu-img version 2.9.50 (v2.9.0-303-g81b2d5c-dirty)

  Qemu command line:
  # qemu-system-ppc64 --enable-kvm --nographic -vga none -machine pseries -m 
4G,slots=32,maxmem=32G -smp 16,maxcpus=32 -device virtio-blk-pci,drive=rootdisk 
 -monitor telnet:,server,nowait -net nic,model=virtio -net user 
-redir tcp:2000::22

  Guest booted successfully and logged in
  Fedora 25 (Twenty Five)
  Kernel 4.11.0-rc4 on an ppc64le (hvc0)

  atest-guest login: updatedb (5582) used greatest stack depth: 9568 bytes left
  Last login: Mon Mar 27 01:57:51 on hvc0
  [root@atest-guest ~]# 

  Qemu monitor:
  # telnet 1234
  Connected to
  Escape character is '^]'.
  QEMU 2.9.50 monitor - type 'help' for more information
  (qemu) sendkey a
  (qemu) sendkey ret

  But from the console, I couldn't observe the keystroke a or return.

To manage notifications about this bug go to:

Reply via email to