pub struct VirtualCPU {}
Expand description
A virtual CPU that can be run until an exit occurs
Implementations§
Source§impl VirtualCPU
impl VirtualCPU
Sourcepub fn run(
hv: &mut dyn Hypervisor,
outb_handle_fn: Arc<Mutex<dyn OutBHandlerCaller>>,
mem_access_fn: Arc<Mutex<dyn MemAccessHandlerCaller>>,
) -> Result<()>
pub fn run( hv: &mut dyn Hypervisor, outb_handle_fn: Arc<Mutex<dyn OutBHandlerCaller>>, mem_access_fn: Arc<Mutex<dyn MemAccessHandlerCaller>>, ) -> Result<()>
Run the given hypervisor until a halt instruction is reached
Auto Trait Implementations§
impl Freeze for VirtualCPU
impl RefUnwindSafe for VirtualCPU
impl Send for VirtualCPU
impl Sync for VirtualCPU
impl Unpin for VirtualCPU
impl UnwindSafe for VirtualCPU
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more