AMD and Intel bake virtualization into chips

Hardware-assisted virtualization, now available from both AMD and Intel, is not a breakthrough but the beginning of one. AMD's SVM (Secure Virtual Machine) and Intel's VT (Virtualization Technology) signal a sea change in CPU design assumptions and the architectures that result.

AMD and Intel set out to solve the same problem and ended up with similar, yet unique solutions. The problem? The enormous overhead imposed by software virtualization by a backward CPU architecture. The solution? Let the CPU take on the heavy lifting.

The first step taken by both chipmakers was to equip their CPUs with the capability to intercept and redirect requests to alter the system's state. In the one machine/one OS model, the operating system is trusted to alter, unchecked, the state of the CPU, chip set, and peripherals. That's an obvious barrier to efficient virtualization; guest OS instances would crash if their system changes, however irresponsible, didn't stick. Keeping up the charade of a one-owner system is the expensive part of virtualization.

The big fix that's needed is to ensure that no operating system can alter the system's state in a way that impedes sharing the computer with other OSes. Software alters system state through the execution of privileged instructions. Identifying and redirecting these are among software virtualization's ugliest jobs, and that's what AMD and Intel chose to take on first.

With an OS running atop SVM or VT, any privileged operation can be intercepted before completion and directed to an entry point set up by the hypervisor, the "supervisor's supervisor," which becomes the only holder and grantor of the privilege to alter system state. For example, when a guest's request to map a segment of virtual memory is intercepted, hypervisor code fulfills that request by handing over a segment of memory already set aside for that guest.

Such privileged operations occur hundreds or thousands of times each second on a virtualized server, and as you can imagine, it's horribly messy when done in software. Intel and AMD wired privileged instruction intercepts into their CPUs and rolled the saving and restoring of extended system state (OS instance context, if you will) into new instructions. There is more to VT and SVM than that, but intercepts and context are the biggies.

AMD plays its AMD64 architecture to substantial advantage; in particular, the CPUs' on-board memory controllers. Intel's memory controller is external to the CPU and thus is unaware of VT. AMD64's on-board memory controllers have been updated to maintain nested paging, which gives each guest instance its own memory address translation table. Intel's architecture requires that guest memory address translation be done in software.

There are other differences between the implementations, with AMD's being a substantial superset of Intel's. Initially, however, virtualization solutions that enable hardware acceleration will target the overlap between the two implementations. This will produce modest benefits. Later on, we'll see products specially written to take advantage of AMD64's enhancements.

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Tom Yager

InfoWorld
Show Comments

Brand Post

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?