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

Cool Tech

Bang and Olufsen Beosound Stage - Dolby Atmos Soundbar

Learn more >

Toys for Boys

Nakamichi Delta 100 3-Way Hi Fi Speaker System

Learn more >

Sony WF-1000XM3 Wireless Noise Cancelling Headphones

Learn more >

ASUS ROG, ACRONYM partner for Special Edition Zephyrus G14

Learn more >

Family Friendly

Mario Kart Live: Home Circuit for Nintendo Switch

Learn more >

Philips Sonicare Diamond Clean 9000 Toothbrush

Learn more >

Stocking Stuffer

Teac 7 inch Swivel Screen Portable DVD Player

Learn more >

SunnyBunny Snowflakes 20 LED Solar Powered Fairy String

Learn more >

Christmas Gift Guide

Click for more ›

Brand Post

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Tom Pope

Dynabook Portégé X30L-G

Ultimately this laptop has achieved everything I would hope for in a laptop for work, while fitting that into a form factor and weight that is remarkable.

Tom Sellers

MSI P65

This smart laptop was enjoyable to use and great to work on – creating content was super simple.

Lolita Wang

MSI GT76

It really doesn’t get more “gaming laptop” than this.

Jack Jeffries

MSI GS75

As the Maserati or BMW of laptops, it would fit perfectly in the hands of a professional needing firepower under the hood, sophistication and class on the surface, and gaming prowess (sports mode if you will) in between.

Taylor Carr

MSI PS63

The MSI PS63 is an amazing laptop and I would definitely consider buying one in the future.

Christopher Low

Brother RJ-4230B

This small mobile printer is exactly what I need for invoicing and other jobs such as sending fellow tradesman details or step-by-step instructions that I can easily print off from my phone or the Web.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?