Struct kvm_rs::vcpu::Vcpu [−][src]
pub struct Vcpu { /* fields omitted */ }
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
impl Vcpu
[src]
impl Vcpu
[src]pub fn get_regs(&self) -> Result<kvm_regs>
[src]
Get the general purpose registers with the KVM_GET_REGS
ioctl in form of
kvm_regs
.
pub fn set_regs(&self, regs: kvm_regs) -> Result<()>
[src]
Set the general purpose registers with the KVM_SET_REGS
ioctl in form of
kvm_regs
.
pub fn get_sregs(&self) -> Result<kvm_sregs>
[src]
Get the special registers with the KVM_GET_SREGS
ioctl in form of
kvm_sregs
.
pub fn set_sregs(&self, sregs: kvm_sregs) -> Result<()>
[src]
Set the special registers with the KVM_SET_SREGS
ioctl in form of
kvm_sregs
.