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

Method get_sregs

vmm/src/cpu.rs:2003–2010  ·  view source on GitHub ↗
(&self, cpu_id: u8)

Source from the content-addressed store, hash-verified

2001
2002 #[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
2003 fn get_sregs(&self, cpu_id: u8) -> Result<SpecialRegisters> {
2004 self.vcpus[usize::from(cpu_id)]
2005 .lock()
2006 .unwrap()
2007 .vcpu
2008 .get_sregs()
2009 .map_err(Error::CpuDebug)
2010 }
2011
2012 #[cfg(all(target_arch = "x86_64", feature = "guest_debug"))]
2013 fn set_sregs(&self, cpu_id: u8, sregs: &SpecialRegisters) -> Result<()> {

Callers 6

setup_sregsFunction · 0.45
read_regsMethod · 0.45
write_regsMethod · 0.45
cpu_write_elf64_noteMethod · 0.45
cpu_write_vmm_noteMethod · 0.45
test_vmFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_vmFunction · 0.36