pub struct VirtualCpu { /* private fields */ }
Expand description

Virtual CPU

Implementations

Creates a VirtualCpu instance for the current thread

Forces an immediate VMEXIT of the VirtualCpu

Returns the cumulative execution time of the VirtualCpu in nanoseconds

Forces flushing of cached VirtualCpu state

Invalidates the translation lookaside buffer (TLB) of the VirtualCpu

Enables an MSR to be used natively by the VM

Returns the current value of an MSR of the VirtualCpu

Set the value of an MSR of the VirtualCpu

Returns the current value of an architectural x86 register of the VirtualCpu

Sets the value of an architectural x86 register of the VirtualCpu

Returns the current value of a VMCS field of the VirtualCpu

Sets the value of a VMCS field of the VirtualCpu

Sets the address of the guest APIC for the VirtualCpu in the guest physical address space of the VM

Reads the current architectural x86 floating point and SIMD state of the VirtualCpu

Sets the architectural x86 floating point and SIMD state of the VirtualCpu

Destroys the VirtualCpu instance associated with the current thread

Executes the VirtualCpu

Trait Implementations

Formats the value using the given formatter. 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 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.