@@ -851,16 +851,18 @@ func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err er
851851 args = appendArgsIfNoConflict (args , "-display" , display )
852852 }
853853
854- switch * y .Arch {
855- // FIXME: use virtio-gpu on all the architectures
856- case limayaml .X8664 , limayaml .RISCV64 :
857- args = append (args , "-device" , "virtio-vga" )
858- default :
859- args = append (args , "-device" , "virtio-gpu" )
854+ if * y .Video .Display != "none" {
855+ switch * y .Arch {
856+ // FIXME: use virtio-gpu on all the architectures
857+ case limayaml .X8664 , limayaml .RISCV64 :
858+ args = append (args , "-device" , "virtio-vga" )
859+ default :
860+ args = append (args , "-device" , "virtio-gpu" )
861+ }
862+ args = append (args , "-device" , "virtio-keyboard-pci" )
863+ args = append (args , "-device" , "virtio-" + input + "-pci" )
864+ args = append (args , "-device" , "qemu-xhci,id=usb-bus" )
860865 }
861- args = append (args , "-device" , "virtio-keyboard-pci" )
862- args = append (args , "-device" , "virtio-" + input + "-pci" )
863- args = append (args , "-device" , "qemu-xhci,id=usb-bus" )
864866
865867 // Parallel
866868 args = append (args , "-parallel" , "none" )
0 commit comments