pub struct SideEntry {}Expand description
One sideband entry: the extra facts about one MacSim record.
Fields§
§raw_index: u64Index of the matching record in the .raw file.
global_seq: u64Global sequence number (crate::Sequence::global).
local_seq: u64Per-vCPU sequence number (crate::Sequence::local).
cr3: u64CR3 when the instruction ran.
physical_pc: u64Guest-physical address of the instruction, or NO_PHYS.
cs: u16CS selector. Bits 1:0 are the requested privilege level, which equals the CPL whenever the CPU is not part-way through a privilege change.
flags: u16crate::RecordFlags bits.
cpl: u8Current privilege level (SS.DPL, as KVM reports it).
mode: u8crate::CpuMode as a number (crate::CpuMode::as_u8).
outcome: u80 retired, 1 REP iteration, 2 faulted.
vector: u8Exception vector if outcome is 2.
len: u8Instruction length.
bytes: [u8; 15]Instruction bytes (first len are valid).
vcpu: u32vCPU (core) number.
accesses: Vec<SideAccess>Every memory access of the instruction, in order.
Implementations§
Source§impl SideEntry
impl SideEntry
Sourcepub fn from_record(
rec: &InstructionRecord,
raw_index: u64,
in_macsim: &[usize],
) -> SideEntry
pub fn from_record( rec: &InstructionRecord, raw_index: u64, in_macsim: &[usize], ) -> SideEntry
Builds the entry for rec, whose MacSim record is number
raw_index; in_macsim lists the indices into rec.accesses that
the MacSim record holds (crate::macsim::selected_accesses).