Hyper-V 体系结构Hyper-V Architecture

Hyper-v 的功能是基于类型1的虚拟机监控程序体系结构。Hyper-V features a Type 1 hypervisor-based architecture. 虚拟机监控程序虚拟化处理器和内存,并为根分区中的虚拟化堆栈提供了一些机制,用于管理 (虚拟机) 的子分区,并向虚拟机公开 i/o 设备等服务。The hypervisor virtualizes processors and memory and provides mechanisms for the virtualization stack in the root partition to manage child partitions (virtual machines) and expose services such as I/O devices to the virtual machines.

根分区拥有并可以直接访问物理 i/o 设备。The root partition owns and has direct access to the physical I/O devices. 根分区中的虚拟化堆栈为虚拟机、管理 Api 和虚拟化 i/o 设备提供了内存管理器。The virtualization stack in the root partition provides a memory manager for virtual machines, management APIs, and virtualized I/O devices. 它还实现了模拟设备,例如集成设备电子设备 (IDE) 磁盘控制器和 PS/2 输入设备端口,并支持 Hyper-v 特定的合成设备,以提高性能并降低开销。It also implements emulated devices such as the integrated device electronics (IDE) disk controller and PS/2 input device port, and it supports Hyper-V-specific synthetic devices for increased performance and reduced overhead.

基于 hyper-v 虚拟机监控程序的体系结构

Hyper-v 特定 i/o 体系结构由根分区中的虚拟化服务提供程序和虚拟化服务客户端中的 (.Vsps) 组成,子分区 (Vsc) 。The Hyper-V-specific I/O architecture consists of virtualization service providers (VSPs) in the root partition and virtualization service clients (VSCs) in the child partition. 每个服务都是通过 VMBus 作为设备公开的,它充当 i/o 总线,并在使用诸如共享内存等机制的虚拟机之间实现高性能的通信。Each service is exposed as a device over VMBus, which acts as an I/O bus and enables high-performance communication between virtual machines that use mechanisms such as shared memory. 来宾操作系统的即插即用管理器枚举这些设备,包括 VMBus,并将适当的设备驱动程序加载 (虚拟服务客户端) 。The guest operating system's Plug and Play manager enumerates these devices, including VMBus, and loads the appropriate device drivers (virtual service clients). 除 i/o 以外的服务还通过此体系结构公开。Services other than I/O are also exposed through this architecture.

从 Windows Server 2008 开始,操作系统功能自旋在虚拟机中运行时优化其行为。Starting with Windows Server 2008, the operating system features enlightenments to optimize its behavior when it is running in virtual machines. 优点包括降低内存虚拟化的成本、提高多核的可伸缩性并降低来宾操作系统的后台 CPU 使用率。The benefits include reducing the cost of memory virtualization, improving multicore scalability, and decreasing the background CPU usage of the guest operating system.

以下各部分提供了在运行 Hyper-v 角色的服务器上提高性能的最佳做法。The following sections suggest best practices that yield increased performance on servers running Hyper-V role.

其他参考Additional References