Skip to content

arm/arm64: mmu fixes and feature

Andrew Jones kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 2 repliesIn review
  2. v111 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- fix compiling on s390x by adding bitops/fls [reported by David]
- fix page_memalign order calculation for non-power-of-2 number of pages (need to round up) [drew]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12arm/arm64: cleanup alloc.h includeslib/arm/asm/setup.h lib/arm/mmu.c lib/arm64/asm/page.h +1 more+1 -40 replies
2/12arm/arm64: add pgtable to thread_infolib/arm/asm/thread_info.h lib/arm/mmu.c lib/arm/processor.c +2 more+7 -20 replies
3/12arm/arm64: fix virt_to_physlib/arm/asm/page.h lib/arm/asm/pgtable.h lib/arm/mmu.c +2 more+48 -160 replies
4/12arm/arm64: flush page table cache when installing entrieslib/arm/asm/mmu.h lib/arm/mmu.c lib/arm64/asm/mmu.h+25 -20 replies
5/12arm/arm64: setup: don't allow gaps in phys rangelib/arm/setup.c+3 -30 replies
6/12phys_alloc: ensure we account all allocationslib/alloc_phys.c lib/alloc_phys.h+14 -21 reply
7/12page_alloc: allow initialization before setup_vm calllib/alloc_page.c lib/alloc_page.h lib/vmalloc.c+12 -30 replies
8/12bitops: add flslib/arm/asm/bitops.h lib/arm64/asm/bitops.h lib/bitops.h +3 more+56 -00 replies
9/12page_alloc: add yet another memalignlib/alloc_page.c lib/alloc_page.h+32 -00 replies
10/12lib/auxinfo: add flags fieldarm/Makefile.common lib/auxinfo.c lib/auxinfo.h+15 -20 replies
11/12arm/arm64: allow setup_vm to be skippedarm/cstart.S arm/cstart64.S lib/arm/setup.c +2 more+56 -90 replies
12/12arm/arm64: sieve should start with the mmu offarm/Makefile.common+2 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH kvm-unit-tests v2 00/12] arm/arm64: mmu fixes and feature

The fixes are getting tests to run on 32-bit ARM again and also fixing virt_to_phys(). The feature is to allow a unit test to start with the MMU disabled. Couple minor cleanups thrown in too.

I tested x86 and ppc64 over TCG, but not s390 (please-test: David).

v2:
- fix compiling on s390x by adding bitops/fls [reported by David]
- fix page_memalign order calculation for non-power-of-2 number of pages (need to round up) [drew]

Andrew Jones (12):
arm/arm64: cleanup alloc.h includes
arm/arm64: add pgtable to thread_info
arm/arm64: fix virt_to_phys
arm/arm64: flush page table cache when installing entries arm/arm64: setup: don't allow gaps in phys range
phys_alloc: ensure we account all allocations
page_alloc: allow initialization before setup_vm call
bitops: add fls
page_alloc: add yet another memalign lib/auxinfo: add flags field
arm/arm64: allow setup_vm to be skipped arm/arm64: sieve should start with the mmu off

 arm/Makefile.common       |  5 ++++-
 arm/cstart.S              | 19 ++++++++++++++++++-
 arm/cstart64.S            | 17 ++++++++++++++++-
 lib/alloc_page.c          | 36 ++++++++++++++++++++++++++++++++++++
 lib/alloc_page.h          |  2 ++
 lib/alloc_phys.c          | 10 ++++++++++
 lib/alloc_phys.h          |  6 ++++--
 lib/arm/asm/bitops.h      |  2 ++
 lib/arm/asm/mmu.h         |  5 +++++
 lib/arm/asm/page.h        |  8 +++-----
 lib/arm/asm/pgtable.h     | 16 ++++++++++++----
 lib/arm/asm/setup.h       |  1 -
 lib/arm/asm/thread_info.h |  1 +
 lib/arm/mmu.c             | 43 ++++++++++++++++++++++++++++++++++++++-----
 lib/arm/processor.c       |  1 +
 lib/arm/setup.c           | 22 ++++++++++++++--------
 lib/arm/smp.c             |  7 ++++++-
 lib/arm64/asm/bitops.h    |  2 ++
 lib/arm64/asm/mmu.h       |  5 +++++
 lib/arm64/asm/page.h      | 10 +++-------
 lib/arm64/asm/pgtable.h   | 12 ++++++++++--
 lib/arm64/processor.c     |  1 +
 lib/arm64/spinlock.c      |  1 +
 lib/auxinfo.c             | 13 ++++++++++++-
 lib/auxinfo.h             |  6 ++++++
 lib/bitops.h              | 38 ++++++++++++++++++++++++++++++++++++++
 lib/ppc64/asm/bitops.h    |  2 ++
 lib/s390x/asm/bitops.h    | 10 ++++++++++
 lib/vmalloc.c             |  9 ++++++---
 lib/x86/asm/bitops.h      |  2 ++
 30 files changed, 270 insertions(+), 42 deletions(-)
 create mode 100644 lib/s390x/asm/bitops.h
Signature · 1 line
2.13.6