<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ray Heffer &#187; cpu</title>
	<atom:link href="http://www.rayheffer.com/tag/cpu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rayheffer.com</link>
	<description>Enterprise Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Running Rings Around Virtualisation</title>
		<link>http://www.rayheffer.com/139/running-rings-around-virtualisation/</link>
		<comments>http://www.rayheffer.com/139/running-rings-around-virtualisation/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 19:43:35 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[80386]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[i386]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[paravirtualisation]]></category>
		<category><![CDATA[privilege]]></category>
		<category><![CDATA[processors]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rings]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=139</guid>
		<description><![CDATA[In 1987 when I was just 11 years old, I used my first real PC, other than the Sinclair Spectrum and Commodore 64 (1984) of course&#8230; an Intel 80386 Personal Computer with a green screen CRT display. Bundled with it was a book called &#8216;80386 Programmer&#8217;s Reference Manual&#8216;.  Back then I was fascinated with computer programming and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F139%2Frunning-rings-around-virtualisation%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F139_2Frunning-rings-around-virtualisation_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F139%2Frunning-rings-around-virtualisation%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="size-full wp-image-373 alignright" title="Virtualisation Rings (DomU or Dom0)" src="http://www.rayheffer.com/wp-content/uploads/2010/02/Disconnected.png" alt="" width="128" height="128" />In 1987 when I was just 11 years old, I used my first real PC, other than the Sinclair Spectrum and Commodore 64 (1984) of course&#8230; an Intel 80386 Personal Computer with a green screen CRT display. Bundled with it was a book called &#8216;<a href="http://www.rayheffer.com/wp-content/uploads/2010/01/80386-Programmers-Reference-Manual.pdf" target="_blank">80386 Programmer&#8217;s Reference Manual</a>&#8216;.  Back then I was fascinated with computer programming and machine code, and although little of the book was understood at the time, much of it is still relevant today. The book was published in 1986, and one of the sections covered processor privilege levels.</p>
<p>Privilege levels determine what rights the procedure being executed has when issuing instructions, or accessing I/O ports and memory addresses. There are 4 privilege levels for x86 processor architecture, and these are called rings. The four rings (0 to 3) are designed to protect the hardware resources, keeping user applications at level 3 (the least privilege) and the operating system kernel at ring 0 (the most privileged).<br />
<span id="more-139"></span><br />
<img src="http://i675.photobucket.com/albums/vv115/rayheffer/Web%20Images/8086-rings.jpg" alt="Processor privilege rings" /></p>
<p>In 1998 VMware used a technique called binary translation that allowed the operating system to operate at ring 1, whilst (unknown to the OS) the VMM (Virtual Machine Monitor) is running at ring 0 with the highest privileges on the hardware resources. Binary translation achieves high performance CPU performance, and it&#8217;s input in x86 code (not source code). The translation itself if dynamic, which happens at runtime (interleaved with the generated code) and it&#8217;s only translated when it is about to execute. You can read more on that &lt;<a href="http://www.vmware.com/resources/techresources/1008" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/resources/techresources/1008?referer=');">here</a>&gt;. What is important, is that this approach enabled full virtualisation of any x86 operating system on VMware Virtual Infrastructure. Interestingly, Virtual Iron which Oracle acquired then ditched back in 2009, didn&#8217;t use binary translation but still managed to achieve full virtualisation using what they labelled as &#8216;native virtualisation&#8217;.</p>
<p>Then in 2006 Intel and AMD released hardware virtualisation technology (VT or AMD-V) in their processors that overcomes the need for using binary translation techniques. This introduced a new level (or mode) aptly names &#8216;root mode&#8217; that sits under ring 0.</p>
<p>I imagine that one day in the distant future, this technology will evolve to such as level it could be like trying to understand <a href="http://en.wikipedia.org/wiki/Molecular_modelling" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Molecular_modelling?referer=');">molecular modelling</a>!</p>
<p>Got r00t?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/139/running-rings-around-virtualisation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
