Skip to main content

StopContext

Trait StopContext 

Source
pub trait StopContext {
    // Required methods
    fn vector_regs(&mut self) -> Option<VectorRegs>;
    fn read_msr(&mut self, index: u32) -> Option<u64>;
}
Expand description

Services the tracer needs from whoever owns the vCPU, at a stop.

Required Methods§

Source

fn vector_regs(&mut self) -> Option<VectorRegs>

The SIMD register file (KVM_GET_XSAVE). Called only for gathers and scatters.

Source

fn read_msr(&mut self, index: u32) -> Option<u64>

Reads an MSR (KVM_GET_MSRS). Called when tracing starts and after the guest writes one of the system-call MSRs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§