<?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>Life in Code &#187; Uncategorized</title>
	<atom:link href="http://code.ncultra.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.ncultra.org</link>
	<description>Thoughts on technology from a veteran programmer.</description>
	<lastBuildDate>Wed, 16 Nov 2011 12:22:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Security and the Kernel Virtual Machine</title>
		<link>http://code.ncultra.org/2011/11/security-and-the-kernel-virtual-machine/</link>
		<comments>http://code.ncultra.org/2011/11/security-and-the-kernel-virtual-machine/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 22:08:59 +0000</pubDate>
		<dc:creator>mdday</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.ncultra.org/?p=105</guid>
		<description><![CDATA[We hear a lot of different things about KVM being &#8220;secure&#8221; and &#8220;not secure.&#8221; Most of the opinions we hear are directly associated with perceptions of security in the Linux kernel. People who have a high opinion of Linux security believe that KVM has high security. People who feel otherwise about Linux tend to also [...]]]></description>
			<content:encoded><![CDATA[<p>We hear a lot of different things about KVM being &#8220;secure&#8221; and &#8220;not secure.&#8221; Most of the opinions we hear are directly associated with perceptions of security in the Linux kernel. People who have a high opinion of Linux security believe that KVM has high security. People who feel otherwise about Linux tend to also feel otherwise about KVM (that it is not a high-security platform).</p>
<p>We also sometimes hear disparaging opinions of KVM security based on mis-information. Such as that KVM is a &#8220;hosted&#8221; hypervisor or that it doesn&#8217;t use hardware security mechanisms.</p>
<p>Mostly, however, we notice that people don&#8217;t have first-hand specific knowledge about KVM&#8217;s security features. That&#8217;s why some of my colleagues at IBM and I wrote <a href="http://code.ncultra.org/wp-content/uploads/2011/11/LXW03004USEN.pdf">KVM: Hypervisor Security you can Depend Upon</a>. This white paper covers the mandatory access control (MAC) features, security certifications, and secure design elements of the KVM hypervisor. For example, KVM is the only x86 hypervisor to support MAC by default. KVM leverages processor virtualization instructions to enforce guest isolation.</p>
<p>What the white paper does not cover are the secondary issues of coding errors, code review, white and black-hat hacking, and maturity. These are are security issues that transcend specific mechanisms but are related to overall design and implementation. (For example, in 2011 there was a programming error in the Linux kernel that subverted SELinux MAC.)</p>
<p>There are some good things to be said about KVM beyond mechanisms. The KVM code base is carefully and openly reviewed. And its older, more mature code than VMware ESX. In <a href="http://portal.acm.org/citation.cfm?id=1899928.1899930"><em>The evolution of an x86 hypervisor</em> </a>the authors who are VMware engineers discuss the substantial re-write and re-design of VMware ESX to support 64-bit operation.  From a code maturity perspective, KVM is older, more mature code than VMware, even though KVM is a newer hypervisor.</p>
<p>This is a discussion that isn&#8217;t going to end with a white paper.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fcode.ncultra.org%2F2011%2F11%2Fsecurity-and-the-kernel-virtual-machine%2F&amp;title=Security%20and%20the%20Kernel%20Virtual%20Machine" id="wpa2a_2"><img src="http://code.ncultra.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://code.ncultra.org/2011/11/security-and-the-kernel-virtual-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The KVM Hypervisor, Red Hat Enterprise Virtualization, and IBM Hardware</title>
		<link>http://code.ncultra.org/2011/11/the-kvm-hypervisor-red-hat-enterprise-virtualization-and-ibm-hardware/</link>
		<comments>http://code.ncultra.org/2011/11/the-kvm-hypervisor-red-hat-enterprise-virtualization-and-ibm-hardware/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 18:53:26 +0000</pubDate>
		<dc:creator>mdday</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.ncultra.org/?p=94</guid>
		<description><![CDATA[I&#8217;ve uploaded the presentation I made today with Jean Staten of IBM and Chuck Dubuque of Red Hat. There were over 700 registrants for the live Web seminar. Click on the link below to view the presentation. Good set of questions from the participants in the morning session. Many of the questions were concerning tools [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve uploaded the presentation I made today with Jean Staten of IBM and Chuck Dubuque of Red Hat. There were over 700 registrants for the live Web seminar. Click on the link below to view the presentation. Good set of questions from the participants in the morning session. Many of the questions were concerning tools for automatic migration from VMware to KVM.</p>
<p>There is some content that covers the System X EX5 servers &#8211; which you can configure with up to 80 cores and 6 Terabytes of RAM. This is unmatched today on x86 hardware except for some speculative designs. The EX5 architecture uses Intel&#8217;s own processor bus to extend the memory and I/O bandwidth of the platform without any material performance penalties.</p>
<p><a href="http://code.ncultra.org/wp-content/uploads/2011/11/11-10-11-RH-IBM-Webinar-Final-3.pdf">Red Hat &#8211; IBM Webinar KVM and REHV</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fcode.ncultra.org%2F2011%2F11%2Fthe-kvm-hypervisor-red-hat-enterprise-virtualization-and-ibm-hardware%2F&amp;title=The%20KVM%20Hypervisor%2C%20Red%20Hat%20Enterprise%20Virtualization%2C%20and%20IBM%20Hardware" id="wpa2a_4"><img src="http://code.ncultra.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://code.ncultra.org/2011/11/the-kvm-hypervisor-red-hat-enterprise-virtualization-and-ibm-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM Reignites Type 1 Versus Type 2 Debate</title>
		<link>http://code.ncultra.org/2011/04/kvm-reignites-type-1-versus-type-2-debate/</link>
		<comments>http://code.ncultra.org/2011/04/kvm-reignites-type-1-versus-type-2-debate/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 16:12:19 +0000</pubDate>
		<dc:creator>mdday</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.ncultra.org/?p=74</guid>
		<description><![CDATA[Some interest in my presentation at the Linux Foundation Collaboration Summit led to an interview and article written by Beth Pariseau of Techtarget. The article is interesting and relevant but the topic of hypervisors is technical and hard to present in a news format. Some of the information provided to Ms. Pariseau by others is not [...]]]></description>
			<content:encoded><![CDATA[<p>Some interest in my presentation at the Linux Foundation Collaboration Summit led to <a href="http://searchservervirtualization.techtarget.com/news/2240034817/KVM-reignites-Type-1-vs-Type-2-hypervisor-debate">an interview and article written by Beth Pariseau of Techtarget</a>. The article is interesting and relevant but the topic of hypervisors is technical and hard to present in a news format. Some of the information provided to Ms. Pariseau by others is not correct, in my opinion but she does a good job presenting opposing viewpoints and a great job overall on the short article.</p>
<p>One particular quote (two years old) from Andi Mann is wrong on virtually every point:</p>
<p style="padding-left: 30px;">“Xen is run and managed at a lower level (ring 0), even for new virtual machine creation, and guests do not share memory blocks, CPU instructions or any of the underlying (albeit occasionally de-privileged) Linux operating system like KVM does. This means KVM suffers performance, latency, security, scalability, isolation and other issues that do not affect a true bare-metal hypervisor.”</p>
<p>Let&#8217;s take these claims one at a time:</p>
<ol>
<li>&#8220;Xen is run and managed at a lower level (ring 0).&#8221; This is egregiously wrong &#8211; KVM is run and managed at Ring 0 as are all hypervisors that use Intel VMX or AMD SVM instructions. See slides # 8 and 19 in my presentation <a href="http://code.ncultra.org/wp-content/uploads/2011/04/kvm-not-what-you-heard1.pdf">kvm-not-what-you-heard</a> or any recent systems&#8217; programmers guide from Intel or AMD.</li>
<li>&#8220;Guests do not share memory blocks, CPU instructions, or any of the underlying Linux operating system like KVM does.&#8221; This is also egregiously wrong. Xen guests share memory blocks with Xen paravirtual I/O drivers, which are almost always hosted in the Linux Domain 0 kernel and shared among all guests. The vast majority of all Xen guests all share an entire Linux operating system &#8212; Domain 0&#8211; that does all I/O and device emulation. The vast majority of all Xen guests share common device drivers. They share the same code emulator. Even the very few Xen geusts that use the Stub domain code share memory blocks with each other and with the Xen kernel using Xenbus. KVM guests also share code, device drivers, and memory blocks. <strong><em>This is not a problem, it is normal, accepted kernel engineering practice. All widely used kernels do this. It is secure because of hardware memory protection. </em></strong></li>
<li>&#8220;KVM suffers performance, latency, security, scalability, isolation, and other issues that do not affect a true bare-metal hypervisor.&#8221; First of all, KVM is a true bare-metal hypervisor. But that doesn&#8217;t prove anything, because bare-metal hypervisors may also be vulnerable to &#8220;latency, security, scalability, isolation, and other issues&#8221; if they are mis-designed or if they suffer from programming errors. So this statement is meaningless. The fact is that KVM has performance advantages over both Xen and VMware<a href="http://www.spec.org/virt_sc2010/results/specvirt_sc2010_perf.html"> (see SPECVirt results, for example.</a>) Xen has a huge isolation issue with Domain 0 (See slides #20-23 in my presentation referenced above).</li>
</ol>
<p>You should dismiss factual errors, such as the ring 0 statement, out of hand. You should disregard these further statements by Mann unless he provides evidence, data, or explanation.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fcode.ncultra.org%2F2011%2F04%2Fkvm-reignites-type-1-versus-type-2-debate%2F&amp;title=KVM%20Reignites%20Type%201%20Versus%20Type%202%20Debate" id="wpa2a_6"><img src="http://code.ncultra.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://code.ncultra.org/2011/04/kvm-reignites-type-1-versus-type-2-debate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Kernel Virtual Machine &#8211; Not What you Have Heard</title>
		<link>http://code.ncultra.org/2011/04/the-kernel-virtual-machine-not-what-you-have-heard/</link>
		<comments>http://code.ncultra.org/2011/04/the-kernel-virtual-machine-not-what-you-have-heard/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 20:01:03 +0000</pubDate>
		<dc:creator>mdday</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.ncultra.org/?p=67</guid>
		<description><![CDATA[Here&#8217;s the presentation I&#8217;m giving at the   Linux Foundation Collaboration Summit:   kvm-not-what-you-heard &#160; Abstract: Mike will review myths, misstatements, and mistakenly-held notions about KVM, the Linux hypervisor. Starting with the major one: that KVM is not a &#8220;bare metal&#8221; hypervisor. In addition to the &#8220;not a bare metal hypervisor&#8221; myth, I&#8217;ll also address other [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the presentation I&#8217;m giving at the   <a href="http://events.linuxfoundation.org/events/collaboration-summit/virtualization">Linux Foundation Collaboration Summit</a>:   <a href="http://code.ncultra.org/wp-content/uploads/2011/04/kvm-not-what-you-heard1.pdf">kvm-not-what-you-heard</a></p>
<p>&nbsp;</p>
<p>Abstract:</p>
<p>Mike will review myths, misstatements, and mistakenly-held notions about KVM, the Linux hypervisor. Starting with the major one: that KVM is not a &#8220;bare metal&#8221; hypervisor. In addition to the &#8220;not a bare metal hypervisor&#8221; myth, I&#8217;ll also address other prominent myths, including: KVM is not good at running Windows guests, KVM is not as secure as other hypervisors, KVM does not scale, KVM does not over-provision memory and KVM doesn&#8217;t have VM_* (meaning VMware apis or features). Whenever possible, I will show the source of the myth and debunk it using source code, published benchmarks, or other mechanisms.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fcode.ncultra.org%2F2011%2F04%2Fthe-kernel-virtual-machine-not-what-you-have-heard%2F&amp;title=The%20Kernel%20Virtual%20Machine%20%26%238211%3B%20Not%20What%20you%20Have%20Heard" id="wpa2a_8"><img src="http://code.ncultra.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://code.ncultra.org/2011/04/the-kernel-virtual-machine-not-what-you-have-heard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM in a Large Data Center</title>
		<link>http://code.ncultra.org/2011/03/kvm-in-a-large-data-center/</link>
		<comments>http://code.ncultra.org/2011/03/kvm-in-a-large-data-center/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 11:33:47 +0000</pubDate>
		<dc:creator>mdday</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://code.ncultra.org/?p=64</guid>
		<description><![CDATA[Yesterday I spoke at the Linux Foundation End-user Summit. My talk was about our experiences deploying the KVM hypervisor in the IBM smart business cloud. I spoke largely about our experiences making KVM work well in a series of large data centers, and the benefits of that experience to the upstream KVM development trajectory. Here [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I spoke at the <a href="http://events.linuxfoundation.org/events/end-user-summit/day">Linux Foundation End-user Summit</a>. My talk was about our experiences deploying the KVM hypervisor in the <a href="http://www-935.ibm.com/services/us/cloud/index.html">IBM smart business cloud</a>. I spoke largely about our experiences making KVM work well in a series of large data centers, and the benefits of that experience to the upstream KVM development trajectory. Here are my slides (pdf): <a title="Here are my slides" href="http://code.ncultra.org/wp-content/uploads/2011/03/mdday-kvm-data-center.pdf">mdday-kvm-data-center</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fcode.ncultra.org%2F2011%2F03%2Fkvm-in-a-large-data-center%2F&amp;title=KVM%20in%20a%20Large%20Data%20Center" id="wpa2a_10"><img src="http://code.ncultra.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://code.ncultra.org/2011/03/kvm-in-a-large-data-center/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

