This commit adds device property configuration for multitouch input devices
in the QEMU command builder (src/qemu/qemu_command.c).

When constructing QEMU command-line arguments for multitouch devices, certain
device-specific properties may need to be configured. This commit extends the
command generation logic to handle these properties, ensuring that multitouch
devices are configured with the appropriate attributes when added to the
virtual machine.

The properties follow the same pattern used for other virtio input devices,
maintaining consistency with the existing virtio input device infrastructure
in libvirt's QEMU driver.

Signed-off-by: Julio Faracco <[email protected]>
---
 src/qemu/qemu_command.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 705cc43cb9..4e4e0e52ef 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -4309,6 +4309,7 @@ qemuBuildInputVirtioDevProps(const virDomainDef *def,
     case VIR_DOMAIN_INPUT_TYPE_MOUSE:
     case VIR_DOMAIN_INPUT_TYPE_TABLET:
     case VIR_DOMAIN_INPUT_TYPE_KBD:
+    case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH:
     case VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH:
         break;
     case VIR_DOMAIN_INPUT_TYPE_EVDEV:
@@ -4354,6 +4355,9 @@ qemuBuildInputUSBDevProps(const virDomainDef *def,
     case VIR_DOMAIN_INPUT_TYPE_KBD:
         driver = "usb-kbd";
         break;
+    case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH:
+        driver = "usb-multitouch";
+        break;
     }
 
     if (virJSONValueObjectAdd(&props,
-- 
2.52.0

Reply via email to