⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

VmExitReason

Enum VmExitReason 

Source
#[repr(u32)]
pub enum VmExitReason {
Show 63 variants ExceptionOrNmi = 0, ExternalInterrupt = 1, TripleFault = 2, InitSignal = 3, StartupIpi = 4, IoSmi = 5, OtherSmi = 6, InterruptWindow = 7, NmiWindow = 8, TaskSwitch = 9, Cpuid = 10, Getsec = 11, Hlt = 12, Invd = 13, Invlpg = 14, Rdpmc = 15, Rdtsc = 16, Rsm = 17, Vmcall = 18, Vmclear = 19, Vmlaunch = 20, Vmptrld = 21, Vmptrst = 22, Vmread = 23, Vmresume = 24, Vmwrite = 25, Vmxoff = 26, Vmxon = 27, ControlRegisterAccess = 28, MovDr = 29, IoInstruction = 30, Rdmsr = 31, Wrmsr = 32, EntryFailInvalidGuestState = 33, EntryFailMsrLoading = 34, Mwait = 36, MonitorTrapFlag = 37, Monitor = 39, Pause = 40, EntryFailMachineCheck = 41, TprBelowThreshold = 43, ApicAccess = 44, VirtualizedEoi = 45, GdtrIdtrAccess = 46, LdtrTrAccess = 47, EptViolation = 48, EptMisconfiguration = 49, Invept = 50, Rdtscp = 51, VmxPreemptionTimerExpired = 52, Invvpid = 53, WbinvdWbnoinvd = 54, Xsetbv = 55, ApicWrite = 56, Rdrand = 57, Invpcid = 58, Vmfunc = 59, Encls = 60, Rdseed = 61, PageModLogFull = 62, Xsaves = 63, Xrstors = 64, Unknown = 65_535,
}

Variants§

§

ExceptionOrNmi = 0

§

ExternalInterrupt = 1

§

TripleFault = 2

§

InitSignal = 3

§

StartupIpi = 4

§

IoSmi = 5

§

OtherSmi = 6

§

InterruptWindow = 7

§

NmiWindow = 8

§

TaskSwitch = 9

§

Cpuid = 10

§

Getsec = 11

§

Hlt = 12

§

Invd = 13

§

Invlpg = 14

§

Rdpmc = 15

§

Rdtsc = 16

§

Rsm = 17

§

Vmcall = 18

§

Vmclear = 19

§

Vmlaunch = 20

§

Vmptrld = 21

§

Vmptrst = 22

§

Vmread = 23

§

Vmresume = 24

§

Vmwrite = 25

§

Vmxoff = 26

§

Vmxon = 27

§

ControlRegisterAccess = 28

§

MovDr = 29

§

IoInstruction = 30

§

Rdmsr = 31

§

Wrmsr = 32

§

EntryFailInvalidGuestState = 33

§

EntryFailMsrLoading = 34

§

Mwait = 36

§

MonitorTrapFlag = 37

§

Monitor = 39

§

Pause = 40

§

EntryFailMachineCheck = 41

§

TprBelowThreshold = 43

§

ApicAccess = 44

§

VirtualizedEoi = 45

§

GdtrIdtrAccess = 46

§

LdtrTrAccess = 47

§

EptViolation = 48

§

EptMisconfiguration = 49

§

Invept = 50

§

Rdtscp = 51

§

VmxPreemptionTimerExpired = 52

§

Invvpid = 53

§

WbinvdWbnoinvd = 54

§

Xsetbv = 55

§

ApicWrite = 56

§

Rdrand = 57

§

Invpcid = 58

§

Vmfunc = 59

§

Encls = 60

§

Rdseed = 61

§

PageModLogFull = 62

§

Xsaves = 63

§

Xrstors = 64

§

Unknown = 65_535

Implementations§

Source§

impl VmExitReason

Source

pub fn from_raw(raw: u32) -> Self

Trait Implementations§

Source§

impl Clone for VmExitReason

Source§

fn clone(&self) -> VmExitReason

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VmExitReason

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for VmExitReason

Source§

fn eq(&self, other: &VmExitReason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for VmExitReason

Source§

impl Eq for VmExitReason

Source§

impl StructuralPartialEq for VmExitReason

Auto Trait Implementations§

§

impl Freeze for VmExitReason

§

impl RefUnwindSafe for VmExitReason

§

impl Send for VmExitReason

§

impl Sync for VmExitReason

§

impl Unpin for VmExitReason

§

impl UnwindSafe for VmExitReason

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.