Skip to content

paravirt: make amount of paravirtualization configurable

Juergen Gross lkml virtualization xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10x86: remove stale prototype from arch/x86/include/asm/pgalloc.harch/x86/include/asm/pgalloc.h+0 -20 replies
1/10x86: remove stale prototype from arch/x86/include/asm/pgalloc.harch/x86/include/asm/pgalloc.h+0 -20 replies
1/10x86: remove stale prototype from arch/x86/include/asm/pgalloc.harch/x86/include/asm/pgalloc.h+0 -20 replies
2/10paravirt: remove unused function paravirt_disable_iospace()arch/x86/include/asm/paravirt_types.h arch/x86/kernel/paravirt.c+0 -210 replies
2/10paravirt: remove unused function paravirt_disable_iospace()arch/x86/include/asm/paravirt_types.h arch/x86/kernel/paravirt.c+0 -210 replies
2/10paravirt: remove unused function paravirt_disable_iospace()arch/x86/include/asm/paravirt_types.h arch/x86/kernel/paravirt.c+0 -210 replies
3/10xen: move interrupt handling for pv guests under CONFIG_XEN_PV umbrellaarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/xen/Makefile+11 -70 replies
3/10xen: move interrupt handling for pv guests under CONFIG_XEN_PV umbrellaarch/x86/entry/entry_32.S arch/x86/entry/entry_64.S arch/x86/xen/Makefile+11 -70 replies
4/10xen: remove non-pv test from arch/x86/xen/irq.carch/x86/xen/irq.c+1 -30 replies
4/10xen: remove non-pv test from arch/x86/xen/irq.carch/x86/xen/irq.c+1 -30 replies
5/10paravirt: add new PARAVIRT_FULL config itemMAINTAINERS arch/x86/Kconfig arch/x86/include/asm/paravirt.h +7 more+44 -14 replies
5/10paravirt: add new PARAVIRT_FULL config itemMAINTAINERS arch/x86/Kconfig arch/x86/include/asm/paravirt.h +7 more+44 -10 replies
6/10paravirt: split pv_cpu_ops for support of PARAVIRT_FULLarch/x86/entry/entry_64.S arch/x86/include/asm/debugreg.h arch/x86/include/asm/desc.h +18 more+522 -4590 replies
6/10paravirt: split pv_cpu_ops for support of PARAVIRT_FULLarch/x86/entry/entry_64.S arch/x86/include/asm/debugreg.h arch/x86/include/asm/desc.h +18 more+522 -4590 replies
7/10paravirt: split pv_irq_ops for support of PARAVIRT_FULLarch/x86/include/asm/irqflags.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +8 more+68 -530 replies
7/10paravirt: split pv_irq_ops for support of PARAVIRT_FULLarch/x86/include/asm/irqflags.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +8 more+68 -530 replies
7/10paravirt: split pv_irq_ops for support of PARAVIRT_FULLarch/x86/include/asm/irqflags.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +8 more+68 -530 replies
8/10paravirt: split pv_mmu_ops for support of PARAVIRT_FULLarch/x86/include/asm/fixmap.h arch/x86/include/asm/mmu_context.h arch/x86/include/asm/paravirt.h +16 more+797 -7830 replies
8/10paravirt: split pv_mmu_ops for support of PARAVIRT_FULLarch/x86/include/asm/fixmap.h arch/x86/include/asm/mmu_context.h arch/x86/include/asm/paravirt.h +16 more+797 -7830 replies
8/10paravirt: split pv_mmu_ops for support of PARAVIRT_FULLarch/x86/include/asm/fixmap.h arch/x86/include/asm/mmu_context.h arch/x86/include/asm/paravirt.h +16 more+797 -7830 replies
9/10paravirt: split pv_info for support of PARAVIRT_FULLarch/x86/boot/compressed/misc.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +9 more+39 -290 replies
9/10paravirt: split pv_info for support of PARAVIRT_FULLarch/x86/boot/compressed/misc.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +9 more+39 -290 replies
9/10paravirt: split pv_info for support of PARAVIRT_FULLarch/x86/boot/compressed/misc.h arch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_full.h +9 more+39 -290 replies
10/10paravirt: merge pv_ops_* structures into onearch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h arch/x86/kernel/alternative.c +17 more+101 -1540 replies
10/10paravirt: merge pv_ops_* structures into onearch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h arch/x86/kernel/alternative.c +17 more+101 -1540 replies
10/10paravirt: merge pv_ops_* structures into onearch/x86/include/asm/paravirt.h arch/x86/include/asm/paravirt_types.h arch/x86/kernel/alternative.c +17 more+101 -1540 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] paravirt: make amount of paravirtualization configurable

Today paravirtualization is a all-or-nothing game: either a kernel is compiled with no paravirtualization support at all, or it is supporting paravirtualized environments like Xen pv-guests or lguest additionally to some paravirtualized tuning for KVM, Hyperv, VMWare or Xen HVM-guests.

As support of pv-guests requires quite intrusive pv-hooks (e.g. all access functions to page table entries, privileged instructions) it is desirable to enable those hooks only in cases where support of pv-guests is really desired.

With splitting up of Xen guest support into pv-guest support and support for HVM-guests it is now possible to do the same for support of paravirtualization: only if XEN_PV or LGUEST_GUEST are configured full paravirtualization is required.

This patch series carves out pv-guest support form PARAVIRT by introducing PARAVIRT_FULL config option selected by XEN_PV and LGUEST_GUEST config options.

The series has been tested for 32 and 64 bit kernels without PARAVIRT, with PARAVIRT, and with PARAVIRT + PARAVIRT_FULL configured.

Juergen Gross (10):
x86: remove stale prototype from arch/x86/include/asm/pgalloc.h
paravirt: remove unused function paravirt_disable_iospace()
xen: move interrupt handling for pv guests under CONFIG_XEN_PV
umbrella
xen: remove non-pv test from arch/x86/xen/irq.c
paravirt: add new PARAVIRT_FULL config item
paravirt: split pv_cpu_ops for support of PARAVIRT_FULL
paravirt: split pv_irq_ops for support of PARAVIRT_FULL
paravirt: split pv_mmu_ops for support of PARAVIRT_FULL
paravirt: split pv_info for support of PARAVIRT_FULL
paravirt: merge pv_ops_* structures into one

 MAINTAINERS                                 |   2 +-
 arch/x86/Kconfig                            |   4 +
 arch/x86/boot/compressed/misc.h             |   1 +
 arch/x86/entry/entry_32.S                   |   4 +-
 arch/x86/entry/entry_64.S                   |  10 +-
 arch/x86/include/asm/debugreg.h             |   2 +-
 arch/x86/include/asm/desc.h                 |   4 +-
 arch/x86/include/asm/fixmap.h               |   2 +-
 arch/x86/include/asm/irqflags.h             |  40 +-
 arch/x86/include/asm/mmu_context.h          |   4 +-
 arch/x86/include/asm/msr.h                  |   4 +-
 arch/x86/include/asm/paravirt.h             | 738 ++--------------------------
 arch/x86/include/asm/paravirt_full.h        | 714 +++++++++++++++++++++++++++
 arch/x86/include/asm/paravirt_types.h       | 243 +--------
 arch/x86/include/asm/paravirt_types_full.h  | 218 ++++++++
 arch/x86/include/asm/pgalloc.h              |   4 +-
 arch/x86/include/asm/pgtable-3level_types.h |   4 +-
 arch/x86/include/asm/pgtable.h              |   8 +-
 arch/x86/include/asm/processor.h            |   4 +-
 arch/x86/include/asm/ptrace.h               |   5 +-
 arch/x86/include/asm/segment.h              |   2 +-
 arch/x86/include/asm/special_insns.h        |  25 +-
 arch/x86/include/asm/tlbflush.h             |   2 +-
 arch/x86/kernel/Makefile                    |   1 +
 arch/x86/kernel/alternative.c               |   4 +-
 arch/x86/kernel/asm-offsets.c               |  21 +-
 arch/x86/kernel/asm-offsets_64.c            |   9 +-
 arch/x86/kernel/cpu/common.c                |   4 +-
 arch/x86/kernel/cpu/vmware.c                |   6 +-
 arch/x86/kernel/head_64.S                   |   2 +-
 arch/x86/kernel/kvm.c                       |   6 +-
 arch/x86/kernel/kvmclock.c                  |   6 +-
 arch/x86/kernel/paravirt.c                  | 303 +-----------
 arch/x86/kernel/paravirt_full.c             | 277 +++++++++++
 arch/x86/kernel/paravirt_patch_32.c         |  36 +-
 arch/x86/kernel/paravirt_patch_64.c         |  50 +-
 arch/x86/kernel/tsc.c                       |   2 +-
 arch/x86/kernel/vsmp_64.c                   |  18 +-
 arch/x86/lguest/Kconfig                     |   1 +
 arch/x86/lguest/boot.c                      | 100 ++--
 arch/x86/xen/Kconfig                        |   1 +
 arch/x86/xen/Makefile                       |   8 +-
 arch/x86/xen/enlighten_hvm.c                |   4 +-
 arch/x86/xen/enlighten_pv.c                 |  58 ++-
 arch/x86/xen/irq.c                          |  15 +-
 arch/x86/xen/mmu_hvm.c                      |   2 +-
 arch/x86/xen/mmu_pv.c                       |  34 +-
 arch/x86/xen/time.c                         |  11 +-
 drivers/xen/time.c                          |   2 +-
 49 files changed, 1548 insertions(+), 1477 deletions(-)
 create mode 100644 arch/x86/include/asm/paravirt_full.h
 create mode 100644 arch/x86/include/asm/paravirt_types_full.h
 create mode 100644 arch/x86/kernel/paravirt_full.c
Signature · 1 line
2.12.0