MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / set_vm_config

Method set_vm_config

crates/openshell-driver-vm/src/runtime.rs:1008–1013  ·  view source on GitHub ↗
(&self, vcpus: u8, mem_mib: u32)

Source from the content-addressed store, hash-verified

1006 }
1007
1008 fn set_vm_config(&self, vcpus: u8, mem_mib: u32) -> Result<(), String> {
1009 check(
1010 unsafe { (self.krun.krun_set_vm_config)(self.ctx_id, vcpus, mem_mib) },
1011 "krun_set_vm_config",
1012 )
1013 }
1014
1015 fn set_disks(
1016 &self,

Callers 1

run_libkrun_vmFunction · 0.80

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected