摘自Linux Virtualization with Lguest,Author:John Quigley
Lguest Launcher
Launcher is an ELF userspace app that launches and monitors guests。
它执行以下任务:
1. maps guest kernel imagine into host’s memory
2.opens /dev/lguest and writes config info about guest
3.hypervisor uses this to initialize and launch guest
4.open procfile used for ongoing control, console I/O,DMA-like I/O via shmem
注意: Physical memory in the Guest is the Host’s virtual memory.
Lguest Hypervisor
The hypervisor is simply a loadablekernel module... cool!
First write tells us memory size, pagetable, entry point,kernel offset
A read will run guest until pending signal (-EINTR), or guest does DMA out to launcher
Hypervisor contains only core facilities:
1domain switching code
2 interrupt handlers
3 few low-level object that need to be virtualized
4 array of structs to maintain info for each guest domain
转载于:https://blog.51cto.com/yang19890314/1144563