Skip to content

paravirt_ops updates

Jeremy Fitzhardinge linux-arch lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20update MAINTAINERSMAINTAINERS+22 -00 replies
2/20Remove CONFIG_DEBUG_PARAVIRTarch/i386/Kconfig.debug arch/i386/kernel/alternative.c+1 -230 replies
3/20use paravirt_nop to consistently mark no-op operationsarch/i386/kernel/paravirt.c include/asm-i386/paravirt.h+16 -130 replies
4/20Add pagetable accessors to pack and unpack pagetable entriesarch/i386/kernel/paravirt.c arch/i386/kernel/vmi.c include/asm-i386/page.h +4 more+186 -1300 replies
5/20Hooks to set up initial pagetablearch/i386/kernel/paravirt.c arch/i386/mm/init.c include/asm-i386/paravirt.h +1 more+142 -520 replies
6/20Allocate a fixmap slotinclude/asm-i386/fixmap.h+3 -00 replies
7/20Allow paravirt backend to choose kernel PMD sharingarch/i386/kernel/paravirt.c arch/i386/mm/fault.c arch/i386/mm/init.c +8 more+105 -2610 replies
8/20add hooks to intercept mm creation and destructionarch/i386/kernel/paravirt.c include/asm-alpha/mmu_context.h include/asm-arm/mmu_context.h +27 more+96 -30 replies
9/20rename struct paravirt_patch to paravirt_patch_site for clarityarch/i386/kernel/alternative.c arch/i386/kernel/vmi.c include/asm-i386/alternative.h +1 more+13 -132 replies
10/20Use patch site IDs computed from offset in paravirt_ops structurearch/i386/kernel/paravirt.c arch/i386/kernel/vmi.c include/asm-i386/paravirt.h+105 -1270 replies
11/20Fix patch site clobbers to include return registerarch/i386/kernel/entry.S include/asm-i386/paravirt.h+11 -90 replies
12/20Consistently wrap paravirt ops callsites to make them patchableinclude/asm-i386/paravirt.h+569 -1460 replies
13/20Document asm-i386/paravirt.hinclude/asm-i386/paravirt.h+123 -170 replies
14/20add common patching machineryarch/i386/kernel/alternative.c arch/i386/kernel/paravirt.c include/asm-i386/paravirt.h+149 -320 replies
15/20add flush_tlb_others paravirt_oparch/i386/kernel/paravirt.c arch/i386/kernel/smp.c include/asm-i386/paravirt.h +1 more+35 -90 replies
16/20revert map_pt_hook.arch/i386/kernel/paravirt.c arch/i386/kernel/vmi.c include/asm-i386/paravirt.h +1 more+6 -280 replies
17/20add kmap_atomic_pte for mapping highpte pagesarch/i386/kernel/paravirt.c arch/i386/mm/highmem.c include/asm-i386/highmem.h +4 more+54 -50 replies
18/20clean up tsc-based sched_clockarch/i386/kernel/sched-clock.c+21 -144 replies
19/20Add a sched_clock paravirt_oparch/i386/kernel/paravirt.c arch/i386/kernel/sched-clock.c arch/i386/kernel/vmi.c +4 more+71 -320 replies
20/20Add apply_to_page_range() which applies a function to a pte range.include/linux/mm.h mm/memory.c+99 -08 replies

Reviews trailers per patch

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

PatchIngo MolnarWilliam IrwinChristoph Lameter
1/20
2/20
3/20A-b
4/20A-b
5/20A-b
6/20A-b
7/20A-b A-b A-b
8/20A-b
9/20
10/20
11/20
12/20
13/20
14/20A-b
15/20
16/20
17/20
18/20
19/20
20/20A-b

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

Read the v1 thread

Cover letter [patch 00/20] paravirt_ops updates

Hi Andi,

Here's a repost of the paravirt_ops update series I posted the other day. Since then, I found a few potential bugs with patching clobbering, cleaned up and documented paravirt.h and the patching machinery.

Overview:

add-MAINTAINERS.patch
obvious

remove-CONFIG_DEBUG_PARAVIRT.patch
No longer meaningful or needed.

paravirt-nop.patch
Clean up nop paravirt_ops functions, mainly to allow the patching machinery to easily identify them.

paravirt-pte-accessors.patch
Accessors to allow pv_ops to control the content of pagetable entries.

paravirt-memory-init.patch
Hook into initial pagetable creation.

paravirt-fixmap.patch
Create a fixmap for early paravirt_ops mappings.

shared-kernel-pmd.patch
Make the choice of whether the kernel pmd is shared between processes or not a runtime selectable flag.

mm-lifetime-hooks.patch
Hooks to allow the creation, use and destruction of an mm_struct to be followed.

paravirt-patch-rename-paravirt_patch.patch
Rename a structure to make its use a bit more clear.

paravirt-use-offset-site-ids.patch
Use the offsetof each function pointer in paravirt_ops as the basis of its patching identifier.

paravirt-fix-clobbers.patch
Fix up various register/use clobber problems. This may be 2.6.21 material, but I don't think it will materially affect VMI.

paravirt-patchable-call-wrappers.patch
Wrap each paravirt_ops call to allow the callsites to be runtime patched.

paravirt-document-paravirt_ops.patch
Document the paravirt_ops structure itself, the patching mechanism, and other cleanups.

paravirt-patch-machinery.patch
General patch machinery for use by pv_ops backends to implment patching.

paravirt-flush_tlb_others.patch
Add a hook for cross-cpu tlb flushing.

revert-map_pt_hook.patch
Back out the map_pt_hook change.

paravirt-kmap_atomic_pte.patch
Replace map_pt_hook with kmap_atomic_pte.

cleanup-tsc-sched-clock.patch
Clean up the tsc-based sched_clock. (I think you already have this.)

paravirt-sched-clock.patch
Add a hook for sched_clock, so that paravirt_ops backends can report unstolen time for use as the scheduler clock.

apply-to-page-range.patch
Apply a function to a range of pagetable entries.

Thanks,
J