
Linus Torvalds已经增加虚拟化环境KVM(基于Linux内核的虚构机)到Linux内核2.6.20中. 简单来说, 内核加载一个特别的模块后(KVM), 内核自身充当虚拟机管理程序(hypervisor). 该方法是在Intel推出VT(虚拟化技术)和AMD推出SVM(安全虚拟机)后宣布的. KVM旧内核补丁的描述中提到仅支持Intel的CPU, 现在最新补丁已经支持AMD处理器.
感谢KVM技术能够运行在当前的内核上, 无需反复提交补丁, 编译内核, 只需简单加载到运行的内核中. 虚拟机运行在没有修改的操作系统上, 这意味着虚拟机在主机上是一个简单进程, 虚拟机的运行跟主机内核是分开的. 与Xen比较起来, Xen是一个修改过的QEMU(QEMU用于支持虚拟机通常PC组件的模拟).
KVM, 大概在2个月前发布到网上, 然后很容易就赶上其它的虚拟化解决方案如Xen, OpenVZ和Vserver, 它们都基于其它的方法, 都在努力集成到linux内核之中. 比如, Xen在两年前就希望集成到Linux内核当中, 这一次2.6.20的更新将增加一个/sys/hypervisor虚拟接口(不仅仅为Xen而设计). Xen加入到内核将还需一些时间.
参考:
Virtualization solution KVM will be in the next version of Linux
相关文章
KVM虚拟化常见问题
Linux上的虚拟化技术
用户友好的Linux虚拟技术: KVM
KVM: 基于内核的虚拟驱动
更多:
虚拟化技术更多的网站资源
备注:
转载请保持文章完整性, 欢迎交流.
Islab.org

zhaoke | 2006-12-18 14:22 | Permanent Link
预计添加到2.6.20内核的kvm patches包括:
kvm-userspace-interface.patch
kvm-userspace-interface-make-enum-values-in-userspace-interface-explicit.patch
kvm-intel-virtual-mode-extensions-definitions.patch
kvm-kvm-data-structures.patch
kvm-random-accessors-and-constants.patch
kvm-virtualization-infrastructure.patch
kvm-virtualization-infrastructure-kvm-fix-guest-cr4-corruption.patch
kvm-virtualization-infrastructure-include-desch.patch
kvm-virtualization-infrastructure-fix-segment-state-changes-across-processor-mode-switches.patch
kvm-virtualization-infrastructure-fix-asm-constraints-for-segment-loads.patch
kvm-virtualization-infrastructure-fix-mmu-reset-locking-when-setting-cr0.patch
kvm-memory-slot-management.patch
kvm-memory-slot-management-zero-guest-memory-before-use.patch
kvm-vcpu-creation-and-maintenance.patch
kvm-vcpu-creation-and-maintenance-segment-access-cleanup.patch
kvm-workaround-cr0cd-cache-disable-bit-leak-from-guest-to.patch
kvm-vcpu-execution-loop.patch
kvm-define-exit-handlers.patch
kvm-define-exit-handlers-pass-fs-gs-segment-bases-to-x86-emulator.patch
kvm-less-common-exit-handlers.patch
kvm-less-common-exit-handlers-handle-rdmsrmsr_efer.patch
kvm-mmu.patch
kvm-mmu-mmu-honor-global-bit-on-huge-pages.patch
kvm-x86-emulator.patch
kvm-x86-emulator-x86-emulator-handle-smsw.patch
kvm-clarify-licensing.patch
kvm-x86-emulator-fix-emulator-mov-cr-decoding.patch
kvm-plumbing.patch
kvm-dynamically-determine-which-msrs-to-load-and-save.patch
kvm-fix-calculation-of-initial-value-of-rdx-register.patch
kvm-avoid-using-vmx-instruction-directly.patch
kvm-avoid-using-vmx-instruction-directly-fix-asm-constraints.patch
kvm-expose-interrupt-bitmap.patch
kvm-add-time-stamp-counter-msr-and-accessors.patch
kvm-expose-msrs-to-userspace.patch
kvm-expose-msrs-to-userspace-v2.patch
kvm-create-kvm-intelko-module.patch
kvm-make-dev-registration-happen-when-the-arch.patch
kvm-make-hardware-detection-an-arch-operation.patch
kvm-make-the-per-cpu-enable-disable-functions-arch.patch
kvm-make-the-hardware-setup-operations-non-percpu.patch
kvm-make-the-guest-debugger-an-arch-operation.patch
kvm-make-msr-accessors-arch-operations.patch
kvm-make-the-segment-accessors-arch-operations.patch
kvm-cache-guest-cr4-in-vcpu-structure.patch
kvm-cache-guest-cr0-in-vcpu-structure.patch
kvm-add-get_segment_base-arch-accessor.patch
kvm-add-idt-and-gdt-descriptor-accessors.patch
kvm-make-syncing-the-register-file-to-the-vcpu.patch
kvm-make-the-vcpu-execution-loop-an-arch-operation.patch
kvm-make-the-vcpu-execution-loop-an-arch-operation-build-fix.patch
kvm-move-the-vmx-exit-handlers-to-vmxc.patch
kvm-make-vcpu_setup-an-arch-operation.patch
kvm-make-__set_cr0-and-dependencies-arch-operations.patch
kvm-make-__set_cr4-an-arch-operation.patch
kvm-make-__set_efer-an-arch-operation.patch
kvm-make-__set_efer-an-arch-operation-build-fix.patch
kvm-make-set_cr3-and-tlb-flushing-arch-operations.patch
kvm-make-inject_page_fault-an-arch-operation.patch
kvm-make-inject_gp-an-arch-operation.patch
kvm-use-the-idt-and-gdt-accessors-in-realmode-emulation.patch
kvm-use-the-general-purpose-register-accessors-rather.patch
kvm-move-the-vmx-tsc-accessors-to-vmxc.patch
kvm-access-rflags-through-an-arch-operation.patch
kvm-move-the-vmx-segment-field-definitions-to-vmxc.patch
kvm-add-an-arch-accessor-for-cs-d-b-and-l-bits.patch
kvm-add-a-set_cr0_no_modeswitch-arch-accessor.patch
kvm-make-vcpu_load-and-vcpu_put-arch-operations.patch
kvm-make-vcpu-creation-and-destruction-arch-operations.patch
kvm-move-vmcs-static-variables-to-vmxc.patch
kvm-make-is_long_mode-an-arch-operation.patch
kvm-use-the-tlb-flush-arch-operation-instead-of-an.patch
kvm-remove-guest_cpl.patch
kvm-move-vmcs-accessors-to-vmxc.patch
kvm-move-vmx-helper-inlines-to-vmxc.patch
kvm-remove-vmx-includes-from-arch-independent-code.patch
kvm-amd-svm-add-architecture-definitions-for-amd-svm.patch
kvm-amd-svm-enhance-x86-emulator.patch
kvm-amd-svm-enhance-x86-emulator-fix-mov-to-from-control-register-emulation.patch
kvm-amd-svm-add-missing-tlb-flushes-to-the-guest-mmu.patch
kvm-amd-svm-add-data-structures.patch
kvm-amd-svm-implementation.patch
kvm-amd-svm-implementation-avoid-three-more-new-instructions.patch
kvm-amd-svm-implementation-more-i386-fixes.patch
kvm-amd-svm-implementation-printk-log-levels.patch
kvm-amd-svm-plumbing.patch
kvm-fix-null-and-c99-init-sparse-warnings.patch
kvm-load-i386-segment-bases.patch
zhaoke | 2006-12-19 15:49 | Permanent Link
Linus在2.6.20-rc1发布公告中提到: kvm driver for all those crazy virtualization people to play with. (kvm已整合到2.6.20-rc1内核中).
blue_stone | 2006-12-23 19:11 | Permanent Link
你文章中说:
KVM, 大概在2个月前发布到网上, 然后很容易就赶上其它的虚拟化解决方案如Xen, OpenVZ和Vserver, 它们都基于其它的方法, 都在努力集成到linux内核之中. 比如, Xen在两年前就希望添加到内核中, 直到现在才添加到linux 2.6.20内核.
xen确实会整合到2.6.20中么?
zhaoke | 2006-12-24 0:39 | Permanent Link
Sorry, Blue_stone and Everyone. there’s a mistake on this article. and Xen will probably added to the latest linux kernel, not the 2.6.20, and Heise exposed that 2.6.20 kernel will also include a /sys/hypervisor patch aimed at providing a consistent interface for virtualization technologies such as Xen. Xen’s hopes of achieving mainline status should rise once it has been ported to the hypervisor interface.
Blue_stone, Thanks for comments.
赵珂网志 :: 用户友好的Linux虚拟技术: KVM | 2007-01-05 14:40 | Permanent Link
[…] 相关文章: KVM: 基于内核的虚拟驱动 Linux内核2.6.20增加虚拟化解决方案KVM […]
赵珂网志 :: Linux KVM与Xen的性能比较 | 2007-01-10 12:39 | Permanent Link
[…] 相关文章 1. KVM的半虚拟化: KVM-paravirt 2. KVM虚拟化常见问题 3. Linux上的虚拟化技术 4. 用户友好的Linux虚拟技术: KVM 5. KVM: 基于内核的虚拟驱动 6. Linux内核2.6.20增加虚拟化解决方案KVM […]
笑容 | 2007-01-28 21:22 | Permanent Link
KVM到底是什么?是 vmware 和 xen 之外的东西。
xen进入了redhat 的领地,却没能进入核心,应该是它最大的遗憾。
那么KVM到底是什么呢。。呵呵