Gem5 KVM

References:

“gem5 features a KVM-based CPU that uses virtualisation to accelerate simulation.”

In this tutorial we will build an X86 simulation, capable of running a full-system simulation, booting an Ubuntu operating system, and running a benchmark. This system will utilize gem5’s ability to switch cores, allowing booting of the operating system in KVM fast-forward mode and switching to a detailed CPU model to run the benchmark, and use a MESI Two Level Ruby cache hierarchy in a dual-core setup.

KVM will only work if the host platform and the simulated ISA are the same (e.g., X86 host and X86 simulation).

Example execution of gem5 with KVM

gem5 with KVM

More

Created Feb 14, 2022 // Last Updated Feb 16, 2022

If you could revise
the fundmental principles of
computer system design
to improve security...

... what would you change?