MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / set_regs

Method set_regs

vmm/src/cpu.rs:1993–2000  ·  view source on GitHub ↗
(&self, cpu_id: u8, regs: &StandardRegisters)

Source from the content-addressed store, hash-verified

1991
1992 #[cfg(feature = "guest_debug")]
1993 fn set_regs(&self, cpu_id: u8, regs: &StandardRegisters) -> Result<()> {
1994 self.vcpus[usize::from(cpu_id)]
1995 .lock()
1996 .unwrap()
1997 .vcpu
1998 .set_regs(regs)
1999 .map_err(Error::CpuDebug)
2000 }
2001
2002 #[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
2003 fn get_sregs(&self, cpu_id: u8) -> Result<SpecialRegisters> {

Callers 4

setup_regsFunction · 0.45
write_regsMethod · 0.45
test_vmFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_vmFunction · 0.36