Enum microvmi::api::events::EventType[][src]

#[repr(C)]
pub enum EventType {
    Cr {
        cr_type: CrType,
        new: u64,
        old: u64,
    },
    Msr {
        msr_type: u32,
        value: u64,
    },
    Breakpoint {
        gpa: u64,
        insn_len: u8,
    },
    Pagefault {
        gva: u64,
        gpa: u64,
        access: Access,
    },
}
Expand description

Various types of events along with their relevant attributes being handled by this driver

Variants

Cr

Cr register interception

Show fields

Fields of Cr

cr_type: CrType

Type of control register

new: u64

new value after cr register has been intercepted by the guest.

old: u64

old value before cr register has been intercepted by the guest.

Msr

Msr register interception

Show fields

Fields of Msr

msr_type: u32

Type of model specific register

value: u64

new value after msr register has been intercepted by the guest.

Breakpoint

int3 interception

Show fields

Fields of Breakpoint

gpa: u64

Physical memory address of the guest

insn_len: u8

instruction length. Generally it should be one. Anything other than one implies malicious guest.

Pagefault
Show fields

Fields of Pagefault

gva: u64

Virtual memory address of the guest

gpa: u64

Physical memory address of the guest

access: Access

Acsess responsible for thr pagefault

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

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.