Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths are left unmodified in the case where the privileged instruction can be trapped and emulated by the hypervisor. The Xen API is designed to be OS agnostic and has had Linux, NetBSD, FreeBSD, Solaris, Plan9 and Netware ported to it. Xen also provides support for running directly on native hardware. The following patch series provides the minimal support required to launch Xen paravirtual guests on standard x86 hardware running the Xen hypervisor. These patches effectively port the Linux kernel to run on the platform interface provided by Xen. This port is done as an i386 subarch. With these patches you will be able to launch an unprivileged guest running the modified Linux kernel and unmodified userspace. This guest is x86, UP only, runs in shadow translated mode, and has no direct access to hardware. This simplifies the patchset to the minimum functionality needed to support a paravirtualized guest. It's worth noting that a fair amount of this patchset deals with paravirtualizing I/O, not just CPU-only. The additional missing functionality is primarily about full SMP support, optimizations such as direct writable page tables, and the management interface. At a high-level, the patches provide the following: - Kconfig and Makefile changes required to support Xen - subarch changes to allow more platform functionality to be implemented by an i386 subarch - Xen subarch implementation - start of day code for running in the hypervisor provided environment (paging enabled) - basic Xen drivers to provide a fully functional guest The Xen platform API encapsulates the following types of requirements: - idt, gdt, ldt (descriptor table handling) - cr2, fpu_taskswitch, debug registers (privileged register handling) - mmu (page table, tlb, and cache handling) - memory reservations - time and timer - vcpu (init, up/down vcpu) - schedule (processor yield, shutdown, etc) - event channel (generalized virtual interrupt handling) - grant table (shared memory interface for high speed interdomain communication) - block device I/O - network device I/O - console device I/O - Xen feature map - Xen version info Thanks to all have reviewed earlier versions of these patches. -chris -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [RFC PATCH 21/33] subarch support for control register accesses
- From: Chris Wright <[email protected]>
- [RFC PATCH 15/33] move segment checks to subarch
- From: Chris Wright <[email protected]>
- [RFC PATCH 30/33] Add the Xenbus sysfs and virtual device hotplug driver.
- From: Chris Wright <[email protected]>
- [RFC PATCH 01/33] Add apply_to_page_range() function
- From: Chris Wright <[email protected]>
- [RFC PATCH 26/33] subarch suport for idle loop (NO_IDLE_HZ for Xen)
- From: Chris Wright <[email protected]>
- [RFC PATCH 10/33] add support for Xen feature queries
- From: Chris Wright <[email protected]>
- [RFC PATCH 17/33] Support loading an initrd when running on Xen
- From: Chris Wright <[email protected]>
- [RFC PATCH 09/33] Add start-of-day setup hooks to subarch
- From: Chris Wright <[email protected]>
- [RFC PATCH 23/33] subarch TLB support
- From: Chris Wright <[email protected]>
- [RFC PATCH 03/33] Add nosegneg capability to the vsyscall page notes
- From: Chris Wright <[email protected]>
- [RFC PATCH 22/33] subarch stack pointer update
- From: Chris Wright <[email protected]>
- [RFC PATCH 05/33] Makefile support to build Xen subarch
- From: Chris Wright <[email protected]>
- [RFC PATCH 25/33] Implement timekeeping for Xen
- From: Chris Wright <[email protected]>
- [RFC PATCH 31/33] Add Xen subarch reboot support
- From: Chris Wright <[email protected]>
- [RFC PATCH 19/33] Support gdt/idt/ldt handling on Xen.
- From: Chris Wright <[email protected]>
- [RFC PATCH 04/33] Add XEN config options and disable unsupported config options.
- From: Chris Wright <[email protected]>
- [RFC PATCH 08/33] Add vmlinuz build target.
- From: Chris Wright <[email protected]>
- [RFC PATCH 14/33] subarch support for controlling interrupt delivery
- From: Chris Wright <[email protected]>
- [RFC PATCH 28/33] Add Xen grant table support
- From: Chris Wright <[email protected]>
- [RFC PATCH 16/33] Add support for Xen to entry.S.
- From: Chris Wright <[email protected]>
- [RFC PATCH 13/33] Add a new head.S start-of-day file for booting on Xen.
- From: Chris Wright <[email protected]>
- [RFC PATCH 11/33] Add Xen-specific memory management definitions
- From: Chris Wright <[email protected]>
- [RFC PATCH 07/33] Hypervisor interface header files.
- From: Chris Wright <[email protected]>
- [RFC PATCH 24/33] Add support for Xen event channels.
- From: Chris Wright <[email protected]>
- [RFC PATCH 20/33] subarch support for interrupt and exception gates
- From: Chris Wright <[email protected]>
- [RFC PATCH 18/33] Subarch support for CPUID instruction
- From: Chris Wright <[email protected]>
- [RFC PATCH 27/33] Add the Xen virtual console driver.
- From: Chris Wright <[email protected]>
- [RFC PATCH 12/33] Change __FIXADDR_TOP to leave room for the hypervisor.
- From: Chris Wright <[email protected]>
- [RFC PATCH 02/33] Add sync bitops
- From: Chris Wright <[email protected]>
- [RFC PATCH 33/33] Add Xen virtual block device driver.
- From: Chris Wright <[email protected]>
- [RFC PATCH 06/33] Add Xen interface header files
- From: Chris Wright <[email protected]>
- [RFC PATCH 32/33] Add the Xen virtual network device driver.
- From: Chris Wright <[email protected]>
- [RFC PATCH 29/33] Add Xen driver utility functions.
- From: Chris Wright <[email protected]>
- [RFC PATCH 21/33] subarch support for control register accesses
- Prev by Date: [RFC PATCH 30/33] Add the Xenbus sysfs and virtual device hotplug driver.
- Next by Date: [RFC PATCH 15/33] move segment checks to subarch
- Previous by thread: [PATCH]net: Add netconsole support to dm9000 driver
- Next by thread: [RFC PATCH 29/33] Add Xen driver utility functions.
- Index(es):