pub trait Msrwhere
Self: Send + Sync,{
// Required methods
fn rdmsr(
&self,
index: u32,
p: &dyn Probe,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<u64, VmError>;
fn wrmsr(
&mut self,
index: u32,
value: u64,
p: &dyn Probe,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<(), VmError>;
}
Expand description
Trait that represent handlers for MSR registers.
Required Methods§
sourcefn rdmsr(
&self,
index: u32,
p: &dyn Probe,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<u64, VmError>
fn rdmsr( &self, index: u32, p: &dyn Probe, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<u64, VmError>
Handler on wrmsr.
sourcefn wrmsr(
&mut self,
index: u32,
value: u64,
p: &dyn Probe,
generic_vcpu_state: &mut GenericVCpuState<'_>
) -> Result<(), VmError>
fn wrmsr( &mut self, index: u32, value: u64, p: &dyn Probe, generic_vcpu_state: &mut GenericVCpuState<'_> ) -> Result<(), VmError>
Handler on wrmsr.