Chapter-7
Qemu Detailed Study
As discussed in chapter 6 QEMU is a machine emulator and thus can
emulate a given number of processor architectures on machine in which it is
running. For QEMU the emulated architectures is called the Target. And the real
machine on which QEMU is running, emulating the target, is called the Host. The
dynamic translation of virtual machine (target ) code to Host code is done by a
module in QEMU called the Tiny Code Generator or TCG for short. When it
comes to TCG the term ‘target’ gets a different meaning. TCG creates the code to
emulate the target thus the code created by TCG is called its target .Thus when it
comes to TCG target means the generated Host code. Figure 7.1 clarifies this
varied terminology.
Figure 7.1: Use of term ‘Target’
TARGET
HOST
QEMU
GUEST
CODE
HOST CODE
(TCG target)
TCG