Struct kvm_rs::vcpu::Vcpu[][src]

pub struct Vcpu { /* fields omitted */ }
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

Get the general purpose registers with the KVM_GET_REGS ioctl in form of kvm_regs.

Set the general purpose registers with the KVM_SET_REGS ioctl in form of kvm_regs.

Get the special registers with the KVM_GET_SREGS ioctl in form of kvm_sregs.

Set the special registers with the KVM_SET_SREGS ioctl in form of kvm_sregs.

Run the guest VCPU with the KVM_RUN ioctl until it exits with one of the exit reasons described in KvmExit.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.