Skip to content

Commit

Permalink
x86_64: allow MMIO reads for MP floating table search when lower memo…
Browse files Browse the repository at this point in the history
…ry is not mapped
  • Loading branch information
jounathaen committed Dec 3, 2024
1 parent 61aad7a commit ae580da
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/linux/x86_64/kvm_cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,19 @@ impl VirtualCPU for KvmCpu {
}
}
}
VcpuExit::MmioRead(addr, _targ) => {
match addr {
0x9_F000..0xA_0000 | 0xF_0000..0x10_0000 => {} // Search for MP floating table
_ => {
self.print_registers();
panic!("mmio read to {addr:#x}");
}
}
}
VcpuExit::MmioWrite(addr, _targ) => {
self.print_registers();
panic!("undefined mmio write to {addr:#x}");
}
VcpuExit::Debug(debug) => {
if let Some(s) = self.stats.as_mut() {
s.increment_val(VmExit::Debug)
Expand Down

0 comments on commit ae580da

Please sign in to comment.