My goal is to perform PCI-passthrough using libvirt and QEMU. A function called evdev from QEMU is to pass keyboard and mouse with virtio driver between host (Debian) and guest (Windows 10) by pressing left-control (LCTL) and right-control (RCTL). The problem is I am using HHKB Pro2, which does not have RCTL, and QEMU evdev hardcoded LCTL+RCTL as the hotkey.
I attempted to remap the keys in Linux using
- Xmodmap
- Directly editing /usr/share/X11/xkb/keycodes/evdev
I suspect to achieve minimal latency they pass the devices directly (through PCI?), perhaps bypassing the mappings. I confirmed that the setup is correct because regular keyboard with a RCTL does work for host and guest swapping, thus the issue is whether I can remap the keys at a low level at all.
Would anyone know if low level of remapping would be possible through software?
Thank you.
*A developer attempted to introduce a patch to change hotkeys for evdev toggle, but was not integrated.