• D
    Fix keymap used to talk with QEMU · ce93f64b
    Daniel P. Berrange 提交于
    The QEMU 'sendkey' command expects keys to be encoded in the same
    way as the RFB extended keycode set. Specifically it wants extended
    keys to have the high bit of the first byte set, while the Linux
    XT KBD driver codeset uses the low bit of the second byte. To deal
    with this we introduce a new keymap 'RFB' and use that in the QEMU
    driver
    
    * include/libvirt/libvirt.h.in: Add VIR_KEYCODE_SET_RFB
    * src/qemu/qemu_driver.c: Use RFB keycode set instead of XT KBD
    * src/util/virkeycode-mapgen.py: Auto-generate the RFB keycode
      set from the XT KBD set
    * src/util/virkeycode.c: Add RFB keycode entry to table. Add a
      verify check on cardinality of the codeOffset table
    ce93f64b
qemu_driver.c 291.6 KB