mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:37:44 +00:00
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.
This commit is contained in:
parent
7ae2debf6e
commit
9399698aaa
1 changed files with 4 additions and 0 deletions
|
@ -268,6 +268,10 @@ if [ "$SERENITY_ARCH" != "aarch64" ]; then
|
||||||
if "${SERENITY_QEMU_BIN}" -chardev help | grep -iq spice; then
|
if "${SERENITY_QEMU_BIN}" -chardev help | grep -iq spice; then
|
||||||
SERENITY_COMMON_QEMU_ARGS="$SERENITY_COMMON_QEMU_ARGS
|
SERENITY_COMMON_QEMU_ARGS="$SERENITY_COMMON_QEMU_ARGS
|
||||||
-spice port=5930,agent-mouse=off,disable-ticketing=on
|
-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
|
-device virtserialport,chardev=vdagent,nr=1
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue