[RFC, PATCH 5/24] i386 Vmi code patching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 23, 2006, at 02:06 , Chris Wright wrote:

> * Zachary Amsden (zach@xxxxxxxxxx) wrote:
>> No, you don't need to dream up all the possible interface bits  
>> ahead of
>> time.  With a la carte interfaces, you can take what you need now,  
>> and
>> add features later.  You don't need an ABI for features.  You need it
>> for compatibility.  You will need to update the hypervisor ABI.   
>> And you
>> can't force people to upgrade their kernels.
>
> How do you support an interface that's not already a part of the ABI
> w/out changing the kernel?


Since the base ABI primarily consists of the x86's privileged  
instruction set (actually, the virtualization-sensitive instructions,  
and padded with NOP instructions), any ROM can work from there, and  
you don't have to worry about updating Linux to use a new ABI.  If  
you use a new ROM+ABI with an old kernel+ABI, they can fall back to  
the base ABI.  Note that this base ABI isn't arbitrary; it wasn't  
pulled out of thin air; it is mostly the x86 system ISA.

If an updated hypervisor offers new features that didn't exist when a  
particular Linux kernel was written and compiled, a new ROM has a  
very good chance of activating those new features, even if only using  
the base ABI of the older Linux kernel.  The ROM is very versatile  
because it maps the low-level instructions to high-level hypervisor  
concepts.  And it is very successful: I have built a Linux 2.6.9  
binary and executed it on Xen 2.0.2, Xen 2.0.7, and Xen 3.0.1; I have  
also built a Linux 2.6.12.6 binary and executed it on Xen 2.0.2, Xen  
2.0.7, and Xen 3.0.1.  This is significant because XenoLinux 2.6.9  
shipped with Xen 2.0.2 and it doesn't work on Xen 3.0.1 due to many  
interface updates; likewise XenoLinux 2.6.12.6 shipped with Xen 3.0.1  
and it doesn't work on the older Xen 2 hypervisors; but the ROM hid  
the interface updates from Xen 2 series to the Xen 3 series, and it  
takes advantage of the new Xen 3 interfaces (it must since Xen 3  
doesn't have a Xen 2 compatibility layer that I'm aware of).

The ROM's interface mapping solves two problems: it converts the x86  
low-level instructions into high-performance hypervisor operations,  
and it maps the low-level instructions into the hypervisor's evolving  
interface.  The ROM gives great independence for hypervisor  
developers, or in other words, permits proliferation of hypervisors,  
and freedom to experiment with interfaces (e.g., real time, or formal  
verification).

Joshua


[Index of Archives]     [KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux