From 9399698aaa61af67714612458829296d9cc16f4a Mon Sep 17 00:00:00 2001 From: Sviatoslav Peleshko Date: Sun, 20 Feb 2022 18:32:56 +0200 Subject: [PATCH] Meta: Add "vdagent" character device for both qemu-vdagent and spicevmc Previously we added it only if spice was available, but it's possible to build qemu with --disable-spice --enable-spice-protocol, which provides qemu-vdagent but no spicevmc. In such case we still configured qemu-vdagent to use "vdagent" device, but never actually defined it, so the qemu-vdagent was never working. --- Meta/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/run.sh b/Meta/run.sh index 1c395d35b5..90322c9c6c 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -268,6 +268,10 @@ if [ "$SERENITY_ARCH" != "aarch64" ]; then if "${SERENITY_QEMU_BIN}" -chardev help | grep -iq spice; then SERENITY_COMMON_QEMU_ARGS="$SERENITY_COMMON_QEMU_ARGS -spice port=5930,agent-mouse=off,disable-ticketing=on + " + fi + if "${SERENITY_QEMU_BIN}" -chardev help | grep -iq 'spice\|vdagent'; then + SERENITY_COMMON_QEMU_ARGS="$SERENITY_COMMON_QEMU_ARGS -device virtserialport,chardev=vdagent,nr=1 " fi