According to documentation the va_end macro should be invoked before
the function returns whenever va_start has been invoked from that
function.
This commit fixes errors reported by cppcheck tool.
Error sample:
[kvm-guest-drivers-windows/Balloon/sys/utils.c:60]: (error) va_list 'list'
was opened but not closed by va_end().
Signed-off-by: Sameeh Jubran <[email protected]>
The driver now reads the EV_KEY and EV_REL config from the device
and builds an HID report descriptor describing the capabilities
(number of buttons, axes, wheels) of the mouse device. Also being
built is a smaller data structure used to transform EVDEV events
to HID reports at run-time.
Mouse is still the only supported input device class.
This commit adds a new driver for the virtio input devices
with VEN 1AF4 and DEV 1052. The initial implementation exposes
all input devices as a basic 3-button mouse so it's useful
only for the mouse device (-device virtio-mouse-pci) for now.
TODO:
- build HID descriptors dynamically depending on the virtual
device capabilities
- implement status queue support (keyboard LEDs and such)
The driver is a miniport HID driver, acting like a lower
filter for MsHidKmdf.sys which ships with Windows 7 and newer.