Struct applevisor::Vcpu

source ·
pub struct Vcpu { /* private fields */ }
Expand description

Represents a Virtual CPU.

Implementations

Creates a new vCPU.

Creates a new vCPU with a user-provided config.

Returns the VcpuInstance associated with the Vcpu.

Returns the Vcpu ID (the integer associated to the corresponding VcpuInstance).

Returns the maximum number of vCPUs that can be created by the hypervisor.

Starts the vCPU.

Stops all vCPUs in the input array.

Gets vCPU exit info.

Gets pending interrupts for a vCPU.

Sets pending interrupts for a vCPU.

Gets the value of a vCPU general purpose register.

Sets the value of a vCPU general purpose register.

Gets the value of a vCPU floating point register

Sets the value of a vCPU floating point register

Gets the value of a vCPU system register.

Sets the value of a vCPU general purpose register.

Gets whether debug exceptions exit the guest.

Sets whether debug exceptions exit the guest.

Gets whether debug-register accesses exit the guest.

Sets whether debug-register accesses exit the guest.

Returns the cumulative execution time of a vCPU, in nanoseconds.

Gets the virtual timer mask.

Sets or clears the virtual timer mask.

Returns the vTimer offset for the vCPU ID you specify.

Sets the vTimer offset to a value that you provide.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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.