pub struct Vcpu { /* private fields */ }
Expand description
Wrapper for VCPU ioctls.
Representation of the file descriptor obtained by the KVM_CREATE_VCPU
ioctl.
This wrapper provides access to the VCPU ioctls
as described in KVM API.
Implementations
sourceimpl Vcpu
impl Vcpu
sourcepub fn get_regs(&self) -> Result<kvm_regs>
pub fn get_regs(&self) -> Result<kvm_regs>
Get the general purpose registers with the KVM_GET_REGS
ioctl in form of
kvm_regs
.
sourcepub fn set_regs(&self, regs: kvm_regs) -> Result<()>
pub fn set_regs(&self, regs: kvm_regs) -> Result<()>
Set the general purpose registers with the KVM_SET_REGS
ioctl in form of
kvm_regs
.
sourcepub fn get_sregs(&self) -> Result<kvm_sregs>
pub fn get_sregs(&self) -> Result<kvm_sregs>
Get the special registers with the KVM_GET_SREGS
ioctl in form of
kvm_sregs
.
Auto Trait Implementations
impl RefUnwindSafe for Vcpu
impl !Send for Vcpu
impl !Sync for Vcpu
impl Unpin for Vcpu
impl UnwindSafe for Vcpu
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more