Infrastructure // Storage
Commentary
8/18/2011
03:43 PM
Jasmine  McTigue
Jasmine McTigue
Commentary
Connect Directly
RSS
E-Mail
50%
50%
Repost This

Virtualization Primer: Paravirtualization

PV, as it's known, increases both virtual machine and hypervisor performance.

If you think paravirtualization is when you have your avatar jump out of an airplane using your Wii, you’re behind the times. With virtual machine version 8 and vSphere 5, VMware introduced and tweaked new paravirtualized guest adapters for a variety of interface types.

Why is that important? First-generation hypervisors tricked guest operating systems into believing they were running on top of real hardware rather than virtual, a ploy that modern hypervisors retain. This deception was necessary to ensure that early hypervisors would be compatible with operating systems that predated virtualization, and it was largely responsible for the broad compatibility of virtualization with a variety of applications, even very early in the game.

Eventually, though, virtualization developers seized on the idea that a guest operating system that knew it was running on a hypervisor could possibly communicate with the hypervisor directly, heightening both virtual machine and hypervisor performance. Thus was born paravirtualization, or PV.

PV requires a guest operating system that is both aware of the underlying hypervisor and capable of making direct calls to it. Various vendors have called their PV implementations different things, but the basic concept is the same across all platforms, including Microsoft's Hyper-V, VMware, and Xen.

The real magic of PV kicked in, however, when processor vendors Advanced Micro Devices and Intel started producing hardware virtualization-assisted CPUs. Prior to PV and hardware-assisted virtualization, a guest virtual machine generally made a call to an emulated virtual device when it needed outside input/output.

Generally, these I/O-sharing features are the most difficult to implement from a hypervisor code standpoint. The VT-x (Intel) and AMD-V (AMD) instruction sets facilitate direct use of devices by hypervisor-managed VMs. Though both implementations are very different, modern hypervisors manage them the same way -- via an abstraction layer.

VT-x and AMD-V both support DMA/interrupt remapping, which provides direct access to PCI devices and is sometimes called PCI pass-through. Furthermore, the PCI-SIG SR-IOV specification outlines the capabilities of current PCI to deliver multiple virtual devices via a single physical PCI interface.

Basically, the magic of PV happens in two places. A modified operating system running on the guest makes direct calls to hardware using a special PV API. Then the hardware-assisted virtualization processor facilitates these calls and makes it easy for the hypervisor to map them to physical resources without diminishing IT's control over the machine.

At present, all major virtualization vendors support PV, and both the major processor vendors support virtualization hardware assist. In general, while the two processor specifications are widely different, they are similar enough to be managed by a common abstraction layer. And that’s good for IT.

Comment  | 
Print  | 
More Insights
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Elite 100 - 2014
Our InformationWeek Elite 100 issue -- our 26th ranking of technology innovators -- shines a spotlight on businesses that are succeeding because of their digital strategies. We take a close at look at the top five companies in this year's ranking and the eight winners of our Business Innovation awards, and offer 20 great ideas that you can use in your company. We also provide a ranked list of our Elite 100 innovators.
Video
Slideshows
Twitter Feed
Audio Interviews
Archived Audio Interviews
GE is a leader in combining connected devices and advanced analytics in pursuit of practical goals like less downtime, lower operating costs, and higher throughput. At GIO Power & Water, CIO Jim Fowler is part of the team exploring how to apply these techniques to some of the world's essential infrastructure, from power plants to water treatment systems. Join us, and bring your questions, as we talk about what's ahead.