(&self, cpu_id: u8)
| 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<()> { |
no outgoing calls