]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: add xhci tablet support
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 20 Mar 2017 13:58:51 +0000 (17:58 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 26 Mar 2017 15:22:30 +0000 (19:22 +0400)
commitdaecaea038587b28304f83fb5930b5d870bacde3
treeb91cecfd6ae81698a54de793e2a738f175034944
parent9bf6b9dfa343673086a1f4faf19e790b94bc709a
bhyve: add xhci tablet support

Along with video and VNC support, bhyve has introduced USB tablet
support as an input device. This tablet is exposed to a guest
as a device on an XHCI controller.

At present, tablet is the only supported device on the XHCI controller
in bhyve, so to make things simple, it's allowed to only have a
single XHCI controller with a single tablet device.

In detail, this commit:

 - Introduces a new capability bit for XHCI support in bhyve
 - Adds an XHCI controller and tabled support with 1:1 mapping
   between them
 - Adds a couple of unit tests
13 files changed:
src/bhyve/bhyve_capabilities.c
src/bhyve/bhyve_capabilities.h
src/bhyve/bhyve_command.c
src/bhyve/bhyve_device.c
tests/bhyvexml2argvdata/bhyvexml2argv-input-xhci-tablet.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-input-xhci-tablet.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-input-xhci-tablet.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-xhci-multiple-controllers.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-xhci-multiple-devs.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-xhci-no-devs.xml [new file with mode: 0644]
tests/bhyvexml2argvtest.c
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-input-xhci-tablet.xml [new file with mode: 0644]
tests/bhyvexml2xmltest.c