Linux Virtualization with Lguest
2013-03-04 17:01
316 查看
摘自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!
Being able to insert a module and start new guest
provides "low commitment" path to virtualization
Provides the /dev/lguest interface, whereby userspace
launcher controls and communicates with guest
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
The Lguest hypervisor is unique in several ways.
Host domain is simply a normal kernel in ring-0
Hypervisor is loaded into top of kernel memory
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
本文出自 “new妞宁” 博客,请务必保留此出处http://yang19890314.blog.51cto.com/1620466/1144563
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!
Being able to insert a module and start new guest
provides "low commitment" path to virtualization
Provides the /dev/lguest interface, whereby userspace
launcher controls and communicates with guest
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
The Lguest hypervisor is unique in several ways.
Host domain is simply a normal kernel in ring-0
Hypervisor is loaded into top of kernel memory
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
本文出自 “new妞宁” 博客,请务必保留此出处http://yang19890314.blog.51cto.com/1620466/1144563
相关文章推荐
- Linux Virtualization with Xen
- How to Install Linux KVM and Create Guest VM with Examples
- linux文件系统解压 tar: Exiting with failure status due to previous errors [Solved]
- Virtualization with Microsoft Virtual Server 2005 [ILLUSTRATED]
- Project0(Get familiar with Linux) (Part 1)
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- Enable JMX on tomcat and debug with eclipse(linux)
- linux network optimize with sysctl
- Breaking the Ice with SELinux
- High CPU load on Linux with HP DP backup job
- HFSC Scheduling with Linux
- linux - How do I write stderr to a file while using "tee" with a pipe?
- How to Get Help With a Command from the Linux Terminal
- How to install Kali Linux on macbook pro with rEFInd
- Arch Linux With Nvidia Driver
- Error:No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi
- How to install Toad on linux with Corssover
- linux autologin with root
- alias with parameter,linux
- 【linux】CentOS安装mysql*.rpm提示conflicts with file from package的解决办法