File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 77 inherit ( pkgs ) lib ;
88 inherit ( pkgs . stdenv ) system ;
99 inherit ( microvmConfig )
10- vcpu mem balloonMem user interfaces volumes shares
10+ vcpu mem balloonMem user volumes shares
1111 socket devices vsock graphics
1212 kernel initrdPath storeDisk storeOnDisk ;
1313 inherit ( microvmConfig . crosvm ) pivotRoot extraArgs ;
1414
15- inherit ( macvtapFds ) nextFreeFd ;
16- inherit ( (
17- builtins . foldl' ( { interfaceFds , nextFreeFd } : { type , id , ... } :
18- if type == "tap"
19- then {
20- interfaceFds = interfaceFds // {
21- ${ id } = nextFreeFd ;
22- } ;
23- nextFreeFd = nextFreeFd + 1 ;
24- }
25- else if type == "macvtap"
26- then { inherit interfaceFds nextFreeFd ; }
27- else throw "Interface type not supported for crosvm: ${ type } "
28- ) { interfaceFds = macvtapFds ; inherit nextFreeFd ; } interfaces
29- ) ) interfaceFds ;
30-
3115 kernelPath = {
3216 x86_64-linux = "${ kernel . dev } /vmlinux" ;
3317 aarch64-linux = "${ kernel . out } /${ pkgs . stdenv . hostPlatform . linux-kernel . target } " ;
You can’t perform that action at this time.
0 commit comments