File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -213,14 +213,16 @@ in {
213
213
} )
214
214
else throw "Unsupported interface type ${ type } for Cloud-Hypervisor"
215
215
) interfaces )
216
- )
216
+ )
217
217
+ " " + # Move vfio-pci outside of
218
- ( lib . concatMapStringsSep " "
219
- ( { bus , path , ... } : {
220
- pci = "path=/sys/bus/pci/devices/${ path } " ;
221
- usb = throw "USB passthrough is not supported on cloud-hypervisor" ;
222
- } . ${ bus } ) devices )
223
- + " " + lib . escapeShellArgs extraArgs ;
218
+ lib . concatStringsSep " " (
219
+ arg "--device" (
220
+ map ( { bus , path , ... } : {
221
+ pci = "path=/sys/bus/pci/devices/${ path } " ;
222
+ usb = throw "USB passthrough is not supported on cloud-hypervisor" ;
223
+ } . ${ bus } ) devices
224
+ )
225
+ ) + " " + lib . escapeShellArgs extraArgs ;
224
226
225
227
canShutdown = socket != null ;
226
228
You can’t perform that action at this time.
0 commit comments