分类: 虚拟化
2011-12-04 20:15:53
http://lists.xensource.com/archives/html/xen-devel/2007-02/msg00771.html
(注:我下载了3.02和3.03的代码与下面不符,难道下面所说的是安装包)
1. linux-2.6.-xen-sparse
2. pristine-linux-2.6.16.29
3. linux-2.6.16.29-xen
4. ref-linux-2.6.16.29
5. linux-2.6.16.29-xen0
6. linux-2.6.16.29-xenU
7. xen
8. unmodified_drivers
The pristine directory is a "direct copy of kernel.org sources" (or whatever sources where used to generate the patched version of Linux). This is used if you want to "make patches" to port to a different version of Linux.
The sparse directory contains the xen-modified source-code, which is "merged" with pristine to create the patched source-code.
Linux-2.6.19.29-xen is another version of ...-xenU and ...-xen0 which is a "universal variant". The xenU and xen0 versions are "stripped down" to make them as small as possible, but you have TWO of them. The –xen version is a unified version which contains drivers and code for both DomU and Dom0 usage, and thus you can have ONE kernel to install everywhere. [Don't worry, the security of Dom0 and DomU is managed by the Xen hypervisor anyways - it's just a case of "if you know it's going to be DomU, don't put the code that it can't use in there" (and likewise for Dom0 not being able to use some code needed in DomU)].
The xen directory contains the hypervisor itself.
Xen 3.1n xen-unstable
n buildconfigs: Makefiles
n docs: Documentation
n extras
n mini-os: Minimal guest OS used for testing
n linux-2.6-xen-sparse: Bare sources for dom0 and domU
n patches: Patches for full Linux sources
n tools: Large collection of tools to run on dom0
n xen: Hypervisor sources
Xen-3.0.1 distribution
This release contains
the following top-level directories:
1. buildconfigs: Makefile rules.
2. docs: Documentation.
3. extras: Contains a subdirectory, mini-os, which is a minimal OS used for testing purposes.
4. linux-2.6-xen-sparse: Stripped-down Linux kernel distribution used for building basic dom0 and domU guest OS kernels. 看来是精简化的最小支持
5. patches: Full complement of patches for the Linux kernel source tree, presumably used for building fullfeatured guest OS kernels.
6. tools: Set of tools used for monitoring and controlling virtual machines.
7. xen: Source code for the Xen hypervisor itself, which is what we are currently attempting to port.
Xen 3.4以后
整体来看 pv guest的代码已经分离出去, 3.1的linux-2.6-xen-sparse目录已经不在xen的包中,可参看http://hi.baidu.com/xupingyong008_li/blog/item/0df20928e58337345243c1f4.html
比如Linux针对xen的补丁见
最近 Dom 0 和Dom U的主要部分已经进入mainline,搜索xen即可知。