Function emulate_insn_memory_op

Source
pub async fn emulate_insn_memory_op<T: EmulatorSupport>(
    support: &mut T,
    gm: &GuestMemory,
    dev: &impl CpuIo,
    gva: u64,
    segment: Segment,
    alignment: AlignmentMode,
    op: EmulatedMemoryOperation<'_>,
) -> Result<(), VpHaltReason<T::Error>>
Expand description

Performs a memory operation as if it had been performed by an emulated instruction.

“As if it had been performed by an emulated instruction” means that the given GVA will be translated to a GPA, subject to applicable segmentation, permission, and alignment checks, may be determined to be MMIO instead of RAM, etc.