分析全虚拟化和半虚拟化.doc分析Xen的半虚拟化和全虚拟化
看前必读:
通俗说来,虚拟化就是把物理资源转变为逻辑上可以管理的资源,以打破物理结构间的壁 垒。虚拟化技术就其本质而言属于一种资源管理技术,它将硬件、软件、网络、存储等硬件设备隔离开 来,使用户能更合理更充分的控制与管理各种资源。
XEN体系架构图
lojse
IO略径
超级管理程序(XEN)
10路径
应用程序
Linux内核
域0 (管理)
物理 驱动程序
§
10系统
内核
内核
:IO路径
IO路径
IO*fi:
▼
物理硬件
Q和平台设备
内存和CPU
(磁盘' LAN、
USB、BMC、IPMk ACPI 等)
(Power, x86, x86 - 64. EM64T, Itarwum)
内存和CPU S3
Xen架构可以使超虚拟化的操作系统直接访问硬件,并且几乎对性能没有任何診响。
Xen Hypervisor位于操作系统和硬件之间,运行在最高优先级(RingO )上,为其上运行 的操作系统内核(Guest OS)提供虚拟化的硬件环境。Guest OS内核运行在较低的优先级
(Ringl )上,运行在Guest Os中的应用程序运行在最低的优先级Ring3上。
明显的少了一个Ring2,这是为什么?
When AMD tidied up the I A32 architecture as part of the process of creating
x86-64, one of the things it did was reduce the num ber of rings. With the exception
of OS/ 2, and (optionally) NetWare, no one at the tim e m ade m uch use of rings 1 and 2, so they wouldn't be m issed. Unfortunately, the virtualization com m unity was among those affected.
Native Paravirtualized
• Hypervisor
© Kernel
O Applications
O Unused
I n the absenee of rings 1 and 2, it w as necessary to m odify Xen to put the operating system in ring 3, along with the applications.
每个Guest Os都运行在一个虚拟域Domain中,其中主控域Domain 0拥有对整个(或部 分)物理系统资源的管理功能,并提供这个系统的管理平台,负责创建和删除其它的虚拟域Domain Uo Xen将虚拟域分成4类:Privileged Domain, DomO、独立设备驱动域I DD( I solation Device Dom ain
)、硬件虚拟域 HVM、Un privileged Domain, Dom Uo 除 了 Do mO 和 IDD,其余统称为 Dom U域,Dom U必须通过
分析全虚拟化和半虚拟化 来自淘豆网m.daumloan.com转载请标明出处.