Domain.priv = spec_info;
}
-let build_vm xc xs state f =
+let build_vm xc xs state f restore =
let cfg = state.vm_cfg in
let domid = state.vm_domid in
try
f state cfg;
set_cpuid xc domid cfg;
- add_devices xc xs domid state false;
+ add_devices xc xs domid state restore;
with exn ->
warn "receive exception building vm: %s" (Printexc.to_string exn);
stop_vm xc xs state;
state.vm_arch <- arch;
) in
create_vm xc xs state;
- build_vm xc xs state from_scratch;
+ build_vm xc xs state from_scratch false;
if cfg.startup = StartupStart then (
try
Domain.restore ~xc ~xs info state.vm_domid fd;
) in
create_vm xc xs state;
- build_vm xc xs state from_fd;
+ build_vm xc xs state from_fd true;
try
Domain.unpause ~xc state.vm_domid;
change_vmstate state VmRunning;