File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -295,25 +295,25 @@ lib.warnIf (mem == 2048) ''
295
295
"-device" "qemu-xhci"
296
296
]
297
297
++
298
- builtins . concatMap ( { bus , path , qemu , ... } : {
299
- pci = [
300
- "-device" "vfio-pci,host=${ path } ,multifunction=on${
301
- # Allow to pass additional arguments to pci device
302
- lib . optionalString ( qemu . deviceExtraArgs != null ) ",${ qemu . deviceExtraArgs } "
303
- } "
304
- ] ;
305
- usb = [
306
- "-device" "usb-host,${ path } "
307
- ] ;
308
- } . ${ bus } ) devices
309
- ++
310
298
lib . optionals ( vsock . cid != null ) [
311
299
"-device"
312
300
"vhost-vsock-${ devType } ,guest-cid=${ toString vsock . cid } "
313
301
]
314
302
++
315
303
extraArgs
316
- ) ;
304
+ )
305
+ + " " + # Move vfio-pci outside of
306
+ ( lib . concatMapStringsSep " " ( { bus , path , qemu , ... } : {
307
+ pci = [
308
+ "-device" "vfio-pci,host=${ path } ,multifunction=on${
309
+ # Allow to pass additional arguments to pci device
310
+ lib . optionalString ( qemu . deviceExtraArgs != null ) ",${ qemu . deviceExtraArgs } "
311
+ } "
312
+ ] ;
313
+ usb = [
314
+ "-device" "usb-host,${ path } "
315
+ ] ;
316
+ } . ${ bus } ) devices ) ;
317
317
318
318
canShutdown = socket != null ;
319
319
You can’t perform that action at this time.
0 commit comments