pub enum Hypercall {
HaltCpu {
code: usize,
},
Print {
buf: Gva,
size: usize,
},
}
Expand description
Supported hypercalls.
Variants§
HaltCpu
Fields
§
code: usize
Exit code. Provides on rdi.
Halt the vcpu with exitcode code
.
rax = 0.
Fields
§
size: usize
Size of buffer to print. Provides on rsi.
Print the message to the console.
rax = 1.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Hypercall
impl Send for Hypercall
impl Sync for Hypercall
impl Unpin for Hypercall
impl UnwindSafe for Hypercall
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more