QEMU Code Overview: Architecture & Internals Tour
QEMU Code Overview: Architecture & Internals Tour
See hmp-commands.hx
User interfaces
Remote UIs include VNC and SPICE
See ui/
Logging
Errors and warnings go to the monitor, if
currently running a command
See include/qemu/main-loop.h
Architecture summary
Main loop vCPU #0 vCPU #1
● Monitor ● Run guest ● Run guest
● UI code code
● Host I/O ● Device ● Device
completion emulation emulation
● Deferred
work
● Timers
Host kernel
KVM, host I/O, scheduling, resource limits
Device emulation
Implementing guest hardware
Hardware emulation model
Accelerators run guest code:
● KVM uses hardware assist (VMX/SVM)
● TCG does binary translation
More info:
http://qemu-project.org/Contribute/SubmitAPatch
Where to find out more
More QEMU architecture overview on my blog:
http://goo.gl/sdaVV