fix(darwin): don't configure SPICE device on darwin

This commit is contained in:
Martin Wimpress 2024-05-14 19:02:01 +01:00 committed by Martin Wimpress
parent 0e6fe28141
commit 62f6e30c70
1 changed files with 20 additions and 17 deletions

View File

@ -1109,9 +1109,12 @@ function vm_boot() {
fi fi
# shellcheck disable=SC2054 # shellcheck disable=SC2054
args+=(-device virtio-rng-pci,rng=rng0 args+=(-device virtio-rng-pci,rng=rng0 -object rng-random,id=rng0,filename=/dev/urandom)
-object rng-random,id=rng0,filename=/dev/urandom
-device "${USB_HOST_PASSTHROUGH_CONTROLLER}",id=spicepass # macOS doesn't support SPICE
if [ ${DARWIN} -eq 0 ]; then
# shellcheck disable=SC2054
args+=(-device "${USB_HOST_PASSTHROUGH_CONTROLLER}",id=spicepass
-chardev spicevmc,id=usbredirchardev1,name=usbredir -chardev spicevmc,id=usbredirchardev1,name=usbredir
-device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1
-chardev spicevmc,id=usbredirchardev2,name=usbredir -chardev spicevmc,id=usbredirchardev2,name=usbredir
@ -1119,8 +1122,7 @@ function vm_boot() {
-chardev spicevmc,id=usbredirchardev3,name=usbredir -chardev spicevmc,id=usbredirchardev3,name=usbredir
-device usb-redir,chardev=usbredirchardev3,id=usbredirdev3 -device usb-redir,chardev=usbredirchardev3,id=usbredirdev3
-device pci-ohci,id=smartpass -device pci-ohci,id=smartpass
-device usb-ccid -device usb-ccid)
)
if ${QEMU} -device help | grep -q smartcard; then if ${QEMU} -device help | grep -q smartcard; then
# shellcheck disable=SC2054 # shellcheck disable=SC2054
@ -1129,6 +1131,7 @@ function vm_boot() {
else else
echo " - WARNING! ${QEMU} was not compiled with support for smartcard devices" echo " - WARNING! ${QEMU} was not compiled with support for smartcard devices"
fi fi
fi
# setup usb-controller # setup usb-controller
if [ "${usb_controller}" == "ehci" ]; then if [ "${usb_controller}" == "ehci" ]; then