QSim - QEMU for Simulators

About QSim

QSim is a project which aims, as part of the Manifold simulation effort at Georgia Tech, to create a thread safe multicore emulation library based on the QEMU emulator. QSim provides instruction-level control of the emulated environment and detailed information about the executing instruction stream. X86 Linux guests are supported with hundreds of emulated hardware contexts, each of which can run in an independent host thread. Applications of QSim include trace-gathering, multithreaded software development, and its primary target: microarchitecture simulation.

Diagram of QSim software architecture.

Diagram of QSim software architecture, showing major components and data flow between them.

QSim requires an x86-64 Linux host to run and currently only supports x86-32 Linux guests.

Acknowledgements

This work was supported by Sandia National Laboratories and the National Science Foundation.

Documentation

User Guide

The QSim User Guide is the best source of information on the QSim project and includes API documentation, a description of the source directory structure, and a discussion of a simple example program.

Presentation Slides

Several presentations have been given on QSim in the years since its inception.

QEMU Internals
A set of slides that attempt to explain the inner-workings of QSim.
Introduction to QSim
A good place to start.

People

The following people are directly involved with the QSim project:

Chad Kersey
Primary developer and software architect of QSim.
Sudhakar Yalamanchili
Chad's advisor and PI of Georgia Tech's Manifold simulation effort.
Arun Rodrigues
Lead on Sandia National Lab's SST simulation effort.

Getting QSim

Releases can be found here. The most recent of these is your best bet for getting a stable QSim system running.

The most recent code can always be found on the SST Google Code repository, and downloaded with:

svn checkout https://sst-simulator.googlecode.com/svn/qsim/trunk qsim

For instructions on building QSim, see the file INSTALL in the root source directory. This is a brief runlog of commands needed to get QSim running.

Development

Those interested in QSim development can subscribe to the QSim mailing list here. TRAC is intended to be used to manage feature requests and bug reports. To request a login, please contact Chad.

Links

Software Components

QEMU Homepage
Open source emulator used, in a modified state, to provide CPU emulation in QSIM.
BusyBox Homepage
The BusyBox multifunction binary (it's like a Swiss Army knife of common Unix utilities) is distributed with the QSim guest userspace.

Related Projects

SST
The SST distributed architectural-level simulator project at Sandia National Labs.
Manifold (link currently not available)
The Manifold distributed architectural-level simulator project at Georgia Tech.
SHADE
An earlier project with a similar implementation and spirit.
COREMU
A QEMU-based multicore emulator with support for up to 255 cores running in parallel. Uses a similar design to QSim, provides emulated PC hardware, but does not provide an instrumentation API with instruction-level execution control.