Skip to content

fix illegal use of __pa() in KVM code

Dave Hansen linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 11 repliesIn review
  2. v15 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5make DEBUG_VIRTUAL work earlier in bootarch/x86/mm/numa.c arch/x86/mm/pat.c arch/x86/mm/physaddr.c+11 -41 reply
2/5pagetable level size/shift/mask helpersarch/x86/include/asm/pgtable.h arch/x86/include/asm/pgtable_types.h+15 -11 reply
3/5use new pagetable helpers in try_preserve_large_page()arch/x86/mm/pageattr.c+4 -71 reply
4/5create slow_virt_to_phys()arch/x86/include/asm/pgtable_types.h arch/x86/mm/pageattr.c+32 -01 reply
5/5fix kvm's use of __pa() on percpu areasarch/x86/kernel/kvm.c arch/x86/kernel/kvmclock.c+7 -62 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchRik van RielMarcelo Tosatti
1/5
2/5
3/5
4/5A-b A-b
5/5A-b A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/5] [v3] fix illegal use of __pa() in KVM code

This series fixes a hard-to-debug early boot hang on 32-bit NUMA systems. It adds coverage to the debugging code, adds some helpers, and eventually fixes the original bug I was hitting.

[v3]
* Remove unnecessary initializations in slow_virt_to_phys(), and convert 'level' to use the new enum pg_level.
* Add some text to slow_virt_to_phys() to make it clear that we are not using it in any remotely fast paths.
[v2]
* Moved DEBUG_VIRTUAL patch earlier in the series (it has no dependencies on anything else and stands on its own.
* Created page_level_*() helpers to replace a nasty switch() at hpa's suggestion