src/vmm/opts.bend checks
raw source on the hub · import 0x002839320e5a033b05bcedb51711713f/src/vmm/opts.bend as Opts
1 import
import Base
Types
type Opts source · line 9 · raw
Data
Opts@kernel:String -> @initrd:String -> @payload:String -> @cmdline:String -> @mem:U32 -> @cpus:U32 -> @disk:String -> @share:String -> @restore:String -> @control:String -> @vsock:String -> @display:String -> @firmware:String -> @vars:String -> @forward:String -> @lan:String -> Opts
Definitions
def Opts.default source · line 12 · raw
Opts
def Opts.mem source · line 15 · raw
@o:Opts -> U32
def Opts.disk source · line 20 · raw
@o:Opts -> String
def Opts.kernel source · line 25 · raw
@o:Opts -> String
def Opts.restore source · line 35 · raw
@o:Opts -> String
def Opts.control source · line 40 · raw
@o:Opts -> String
def Opts.cpus source · line 45 · raw
@o:Opts -> U32
def Opts.vsock source · line 50 · raw
@o:Opts -> String
def Opts.firmware source · line 55 · raw
@o:Opts -> String
def Opts.vars source · line 60 · raw
@o:Opts -> String
def Opts.forward source · line 65 · raw
@o:Opts -> String
def Opts.lan source · line 70 · raw
@o:Opts -> String
def Opts.display source · line 75 · raw
@o:Opts -> String
def Opts.num source · line 81 · raw
@s:String -> @d:U32 -> U32
def Opts.more source · line 86 · raw
@+was:String -> @+v:String -> String
--share is repeatable: Opts.share keeps every value, one a line (src/vmm/cli.bend, Cli.shares).
def Opts.set source · line 89 · raw
@+flag:String -> @+v:String -> @o:Opts -> Opts
def Opts.parse source · line 112 · raw
@args:List<&1, String> -> @o:Opts -> Opts
def Opts.with_forward source · line 125 · raw
@o:Opts -> @fd:String -> Opts
o with this run's --forward (forwards are not the snapshot's: they come from the command line that restores it).
def Opts.with_size source · line 132 · raw
@o:Opts -> @mem:U32 -> @cpus:U32 -> Opts
o with the RAM and vCPUs a restore makes (the snapshot header's).
def Restore.opts source · line 139 · raw
@saved:List<&1, String> -> @now:Opts -> Opts
Options for a restore: the snapshot's own (its saved command line, past the program's words), with this run's --control and --forward.
def Restore.differs.one source · line 149 · raw
@+flag:String -> @+was:String -> @+now:String -> String
A snapshot names the host files and sockets its devices use. Restoring it opens them only when this command line names the same ones, so a snapshot from elsewhere cannot choose what to open, share or replace: the first flag that differs, as a message ("" when none does).
def Restore.differs.first source · line 155 · raw
@+a:String -> @b:String -> String
def Restore.differs source · line 158 · raw
@+was:Opts -> @+now:Opts -> String