Skip to content

xen: Xen paravirt_ops implementation

Jeremy Fitzhardinge lkml netdev virtualization xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33xen: paravirt: add an "mm" argument to alloc_ptarch/i386/kernel/vmi.c arch/i386/mm/init.c arch/i386/mm/pageattr.c +2 more+10 -100 replies
2/33xen: paravirt: add a hook for once the allocator is readyarch/i386/kernel/setup.c include/asm-i386/paravirt.h include/asm-i386/setup.h+14 -00 replies
3/33xen: paravirt: increase IRQ limitinclude/asm-i386/mach-default/irq_vectors_limits.h+1 -10 replies
4/33xen: paravirt: unstatic leave_mmarch/i386/kernel/smp.c include/asm-i386/mmu_context.h+5 -20 replies
5/33xen: paravirt: unstatic smp_store_cpu_infoarch/i386/kernel/smpboot.c include/asm-i386/smp.h+3 -10 replies
6/33xen: paravirt: make siblingmap functions visiblearch/i386/kernel/smpboot.c include/asm-i386/smp.h+5 -40 replies
7/33xen: paravirt: export __supported_pte_maskarch/i386/mm/init.c+1 -00 replies
8/33xen: Allocate and free vmalloc areasinclude/linux/vmalloc.h mm/vmalloc.c+57 -00 replies
9/33xen: Add nosegneg capability to the vsyscall page notesarch/i386/kernel/vsyscall-note.S+28 -00 replies
10/33xen: Add Xen interface header filesinclude/asm-i386/xen/hypercall.h include/asm-i386/xen/hypervisor.h include/asm-i386/xen/interface.h +16 more+3043 -00 replies
11/33xen: Core Xen implementationarch/i386/Makefile arch/i386/kernel/entry.S arch/i386/kernel/head.S +13 more+1367 -10 replies
12/33xen: Xen virtual mmuarch/i386/xen/Makefile arch/i386/xen/enlighten.c arch/i386/xen/mmu.c +1 more+493 -50 replies
13/33xen: xen event channelsarch/i386/xen/Makefile arch/i386/xen/enlighten.c arch/i386/xen/events.c +1 more+542 -10 replies
14/33xen: xen time implementationarch/i386/xen/Makefile arch/i386/xen/enlighten.c arch/i386/xen/time.c+409 -124 replies
15/33xen: xen configurationarch/i386/Kconfig arch/i386/xen/Kconfig+13 -00 replies
16/33xen: xen: add pinned page flaginclude/linux/page-flags.h+5 -00 replies
17/33xen: Complete pagetable pinning for Xenarch/i386/xen/enlighten.c arch/i386/xen/mmu.c arch/i386/xen/mmu.h +1 more+266 -1340 replies
18/33xen: xen: ignore RW mapping of RO pages in pagetable_initarch/i386/xen/enlighten.c+25 -20 replies
19/33xen: Account for time stolen by Xenarch/i386/xen/time.c+153 -100 replies
20/33xen: Implement xen_sched_clockarch/i386/xen/enlighten.c arch/i386/xen/time.c arch/i386/xen/xen-ops.h+28 -40 replies
21/33xen: Xen SMP guest supportarch/i386/xen/Kconfig arch/i386/xen/Makefile arch/i386/xen/enlighten.c +8 more+713 -652 replies
22/33xen: Add support for preemptionarch/i386/xen/Kconfig arch/i386/xen/enlighten.c arch/i386/xen/mmu.c +2 more+89 -550 replies
23/33xen: xen: lazy-mmu operationsarch/i386/xen/enlighten.c arch/i386/xen/mmu.c arch/i386/xen/multicalls.c+78 -380 replies
24/33xen: xen: hack to prevent bad segment register reloadarch/i386/xen/enlighten.c+12 -00 replies
25/33xen: Use the hvc console infrastructure for Xen consolearch/i386/xen/events.c arch/x86_64/kernel/early_printk.c drivers/char/Kconfig +4 more+182 -10 replies
26/33xen: Add Xen grant table supportdrivers/Makefile drivers/xen/Makefile drivers/xen/grant-table.c +2 more+777 -110 replies
27/33xen: Add the Xenbus sysfs and virtual device hotplug driver.drivers/xen/Makefile drivers/xen/xenbus/Makefile drivers/xen/xenbus/xenbus_client.c +7 more+2961 -00 replies
28/33xen: Add Xen virtual block device driver.drivers/block/Kconfig drivers/block/Makefile drivers/block/xen-blkfront.c +1 more+999 -00 replies
29/33xen: Add the Xen virtual network device driver.drivers/net/Kconfig drivers/net/Makefile drivers/net/xen-netfront.c+2008 -00 replies
30/33xen: Xen machine operationsarch/i386/xen/enlighten.c arch/i386/xen/smp.c+44 -30 replies
31/33xen: xen: handle external requests for shutdown, reboot and sysrqarch/i386/xen/Makefile arch/i386/xen/manage.c+144 -10 replies
32/33xen: Place vcpu_info structure into per-cpu memory, if possiblearch/i386/xen/enlighten.c arch/i386/xen/setup.c include/xen/interface/vcpu.h+133 -90 replies
33/33xen: Attempt to patch inline versions of common operationsarch/i386/kernel/asm-offsets.c arch/i386/xen/Makefile arch/i386/xen/enlighten.c +2 more+190 -540 replies

Reviews trailers per patch

8 of 33 patches have a Reviewed-by or Acked-by.

PatchZachary AmsdenChris WrightIngo MolnarOlof Johansson
1/33
2/33
3/33
4/33
5/33
6/33
7/33
8/33
9/33A-b
10/33
11/33
12/33
13/33
14/33
15/33
16/33
17/33
18/33A-b
19/33A-b
20/33A-b
21/33
22/33A-b
23/33A-b
24/33
25/33A-b A-b
26/33
27/33
28/33
29/33
30/33A-b
31/33
32/33
33/33

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [patch 00/33] xen: Xen paravirt_ops implementation

Hi,

This is the Xen implementation for the paravirt_ops interface. The series is based on 2.6.22-rc1-mm1, and I think its ready to be cooked in -mm with a view to being merged in 2.6.23.

The first part of the series is some small changes to the core kernel. Apart from the new code added in "Allocate and free vmalloc areas" (posted many times before), they are simply a few one-liners around the place.

paravirt: add an "mm" argument to alloc_pt
paravirt: add a hook for once the allocator is ready
paravirt: increase IRQ limit
paravirt: unstatic leave_mm
paravirt: unstatic smp_store_cpu_info
paravirt: make siblingmap functions visible
paravirt: export __supported_pte_mask
xen: Allocate and free vmalloc areas

 arch/i386/kernel/setup.c                           |    2 
 arch/i386/kernel/smp.c                             |    5 -
 arch/i386/kernel/smpboot.c                         |    8 -
 arch/i386/kernel/vsyscall-note.S                   |   28 +++++
 arch/i386/mm/init.c                                |    1 
 include/asm-i386/mach-default/irq_vectors_limits.h |    2 
 include/asm-i386/mmu_context.h                     |    2 
 include/asm-i386/paravirt.h                        |    8 +
 include/asm-i386/setup.h                           |    4 
 include/asm-i386/smp.h                             |    5 +
 include/linux/vmalloc.h                            |    4 
 mm/vmalloc.c                                       |   53 +++++++++++
 12 files changed, 114 insertions(+), 8 deletions(-)

The rest of the series is the Xen implementation itself. This includes the core of Xen itself, plus the Xenbus virtual bus, and virtual console, disk and net drivers. The vast majority of it is new code, with a few changes to non-Xen files to:

1. Makefile/Kconfig build stuff
2. add a new ELF note to the VDSO to select a Xen-optimised libc
3. a chunk of new code in entry.S, to handle upcalls from Xen, which in turn need to jump into other entry.S labels
4. Define a proper label for PG_owner_priv_1
5. Define a major for the Xen virtual block device
6. Increate NR_IRQ to 224 when CONFIG_PARAVIRT is enabled, even if there's no IO APIC.

xen: Add nosegneg capability to the vsyscall page notes
xen: Add Xen interface header files
xen: Core Xen implementation
xen: Xen virtual mmu
xen: xen event channels
xen: xen time implementation
xen: xen configuration
xen: add pinned page flag
xen: Complete pagetable pinning for Xen
xen: ignore RW mapping of RO pages in pagetable_init
xen: Account for time stolen by Xen
xen: Implement xen_sched_clock
xen: Xen SMP guest support
xen: Add support for preemption
xen: lazy-mmu operations
xen: hack to prevent bad segment register reload
xen: Use the hvc console infrastructure for Xen console
xen: Add Xen grant table support
xen: Add the Xenbus sysfs and virtual device hotplug driver.
xen: Add Xen virtual block device driver.
xen: Add the Xen virtual network device driver.
xen: Xen machine operations
xen: handle external requests for shutdown, reboot and sysrq
xen: Place vcpu_info structure into per-cpu memory, if possible
xen: Attempt to patch inline versions of common operations

 arch/i386/Kconfig                     |    2 
 arch/i386/Makefile                    |    3 
 arch/i386/kernel/asm-offsets.c        |    7 
 arch/i386/kernel/entry.S              |   71 
 arch/i386/kernel/head.S               |    5 
 arch/i386/kernel/vmlinux.lds.S        |    1 
 arch/i386/xen/Kconfig                 |   11 
 arch/i386/xen/Makefile                |    4 
 arch/i386/xen/enlighten.c             | 1134 +++++++++++++
 arch/i386/xen/events.c                |  588 +++++++
 arch/i386/xen/features.c              |   29 
 arch/i386/xen/manage.c                |  143 +
 arch/i386/xen/mmu.c                   |  599 +++++++
 arch/i386/xen/mmu.h                   |   60 
 arch/i386/xen/multicalls.c            |  115 +
 arch/i386/xen/multicalls.h            |   45 
 arch/i386/xen/setup.c                 |   93 +
 arch/i386/xen/smp.c                   |  405 ++++
 arch/i386/xen/time.c                  |  585 +++++++
 arch/i386/xen/xen-asm.S               |  114 +
 arch/i386/xen/xen-head.S              |   36 
 arch/i386/xen/xen-ops.h               |   70 
 arch/x86_64/kernel/early_printk.c     |    5 
 drivers/Makefile                      |    2 
 drivers/block/Kconfig                 |    8 
 drivers/block/Makefile                |    1 
 drivers/block/xen-blkfront.c          |  988 +++++++++++
 drivers/char/Kconfig                  |    8 
 drivers/char/Makefile                 |    1 
 drivers/char/hvc_xen.c                |  159 +
 drivers/net/Kconfig                   |   12 
 drivers/net/Makefile                  |    1 
 drivers/net/xen-netfront.c            | 1995 ++++++++++++++++++++++++
 drivers/xen/Makefile                  |    2 
 drivers/xen/grant-table.c             |  582 +++++++
 drivers/xen/xenbus/Makefile           |    7 
 drivers/xen/xenbus/xenbus_client.c    |  569 ++++++
 drivers/xen/xenbus/xenbus_comms.c     |  233 ++
 drivers/xen/xenbus/xenbus_comms.h     |   46 
 drivers/xen/xenbus/xenbus_probe.c     |  935 +++++++++++
 drivers/xen/xenbus/xenbus_probe.h     |   74 
 drivers/xen/xenbus/xenbus_xs.c        |  861 ++++++++++
 include/asm-i386/irq.h                |    1 
 include/asm-i386/xen/hypercall.h      |  431 +++++
 include/asm-i386/xen/hypervisor.h     |   73 
 include/asm-i386/xen/interface.h      |  187 ++
 include/linux/major.h                 |    2 
 include/linux/page-flags.h            |    5 
 include/xen/events.h                  |   48 
 include/xen/features.h                |   23 
 include/xen/grant_table.h             |  107 +
 include/xen/hvc-console.h             |    6 
 include/xen/interface/elfnote.h       |  133 +
 include/xen/interface/event_channel.h |  195 ++
 include/xen/interface/features.h      |   43 
 include/xen/interface/grant_table.h   |  375 ++++
 include/xen/interface/io/blkif.h      |   94 +
 include/xen/interface/io/console.h    |   23 
 include/xen/interface/io/netif.h      |  156 +
 include/xen/interface/io/ring.h       |  260 +++
 include/xen/interface/io/xenbus.h     |   42 
 include/xen/interface/io/xs_wire.h    |   87 +
 include/xen/interface/memory.h        |  145 +
 include/xen/interface/physdev.h       |  145 +
 include/xen/interface/sched.h         |   77 
 include/xen/interface/vcpu.h          |  177 ++
 include/xen/interface/version.h       |   60 
 include/xen/interface/xen.h           |  446 +++++
 include/xen/page.h                    |  178 ++
 include/xen/xenbus.h                  |  234 ++
 70 files changed, 14361 insertions(+), 1 deletion(-)