Enum kvm_ioctls::VcpuExit

source ·
pub enum VcpuExit<'a> {
Show 33 variants IoOut(u16, &'a [u8]), IoIn(u16, &'a mut [u8]), MmioRead(u64, &'a mut [u8]), MmioWrite(u64, &'a [u8]), Unknown, Exception, Hypercall, Debug(kvm_debug_exit_arch), Hlt, IrqWindowOpen, Shutdown, FailEntry(u64, u32), Intr, SetTpr, TprAccess, S390Sieic, S390Reset, Dcr, Nmi, InternalError, Osi, PaprHcall, S390Ucontrol, Watchdog, S390Tsch, Epr, SystemEvent(u32, &'a [u64]), S390Stsi, IoapicEoi(u8), Hyperv, X86Rdmsr(ReadMsrExit<'a>), X86Wrmsr(WriteMsrExit<'a>), Unsupported(u32),
}
Expand description

Reasons for vCPU exits.

The exit reasons are mapped to the KVM_EXIT_* defines in the Linux KVM header.

Variants§

§

IoOut(u16, &'a [u8])

An out port instruction was run on the given port with the given data.

§

IoIn(u16, &'a mut [u8])

An in port instruction was run on the given port.

The given slice should be filled in before run() is called again.

§

MmioRead(u64, &'a mut [u8])

A read instruction was run against the given MMIO address.

The given slice should be filled in before run() is called again.

§

MmioWrite(u64, &'a [u8])

A write instruction was run against the given MMIO address with the given data.

§

Unknown

Corresponds to KVM_EXIT_UNKNOWN.

§

Exception

Corresponds to KVM_EXIT_EXCEPTION.

§

Hypercall

Corresponds to KVM_EXIT_HYPERCALL.

§

Debug(kvm_debug_exit_arch)

Corresponds to KVM_EXIT_DEBUG.

Provides architecture specific information for the debug event.

§

Hlt

Corresponds to KVM_EXIT_HLT.

§

IrqWindowOpen

Corresponds to KVM_EXIT_IRQ_WINDOW_OPEN.

§

Shutdown

Corresponds to KVM_EXIT_SHUTDOWN.

§

FailEntry(u64, u32)

Corresponds to KVM_EXIT_FAIL_ENTRY.

§

Intr

Corresponds to KVM_EXIT_INTR.

§

SetTpr

Corresponds to KVM_EXIT_SET_TPR.

§

TprAccess

Corresponds to KVM_EXIT_TPR_ACCESS.

§

S390Sieic

Corresponds to KVM_EXIT_S390_SIEIC.

§

S390Reset

Corresponds to KVM_EXIT_S390_RESET.

§

Dcr

Corresponds to KVM_EXIT_DCR.

§

Nmi

Corresponds to KVM_EXIT_NMI.

§

InternalError

Corresponds to KVM_EXIT_INTERNAL_ERROR.

§

Osi

Corresponds to KVM_EXIT_OSI.

§

PaprHcall

Corresponds to KVM_EXIT_PAPR_HCALL.

§

S390Ucontrol

Corresponds to KVM_EXIT_S390_UCONTROL.

§

Watchdog

Corresponds to KVM_EXIT_WATCHDOG.

§

S390Tsch

Corresponds to KVM_EXIT_S390_TSCH.

§

Epr

Corresponds to KVM_EXIT_EPR.

§

SystemEvent(u32, &'a [u64])

Corresponds to KVM_EXIT_SYSTEM_EVENT.

§

S390Stsi

Corresponds to KVM_EXIT_S390_STSI.

§

IoapicEoi(u8)

Corresponds to KVM_EXIT_IOAPIC_EOI.

§

Hyperv

Corresponds to KVM_EXIT_HYPERV.

§

X86Rdmsr(ReadMsrExit<'a>)

Corresponds to KVM_EXIT_X86_RDMSR.

§

X86Wrmsr(WriteMsrExit<'a>)

Corresponds to KVM_EXIT_X86_WRMSR.

§

Unsupported(u32)

Corresponds to an exit reason that is unknown from the current version of the kvm-ioctls crate. Let the consumer decide about what to do with it.

Trait Implementations§

source§

impl<'a> Debug for VcpuExit<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for VcpuExit<'a>

§

impl<'a> RefUnwindSafe for VcpuExit<'a>

§

impl<'a> Send for VcpuExit<'a>

§

impl<'a> Sync for VcpuExit<'a>

§

impl<'a> Unpin for VcpuExit<'a>

§

impl<'a> !UnwindSafe for VcpuExit<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.