Skip to content

riscv: 32-bit should use phys_addr_t

Andrew Jones kvm kvm-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7riscv: Fix virt_to_phys againlib/riscv/mmu.c+2 -20 replies
2/7riscv: setup: Apply VA_BASE check to rv64lib/riscv/setup.c+1 -10 replies
3/7riscv: Support up to 34-bit physical addresses on rv32, sort oflib/riscv/asm/io.h lib/riscv/mmu.c lib/riscv/smp.c+28 -150 replies
4/7riscv: Track memory above 3Glib/memregions.h lib/riscv/setup.c+12 -40 replies
5/7riscv: mmu: Sanity check input physical addresseslib/riscv/asm/mmu.h lib/riscv/mmu.c+6 -00 replies
6/7riscv: Define and use PHYS_PAGE_MASKlib/riscv/asm/mmu.h lib/riscv/mmu.c lib/riscv/setup.c+5 -40 replies
7/7riscv: mmu: Ensure order of PTE update and sfencelib/riscv/mmu.c+2 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/7] riscv: 32-bit should use phys_addr_t

For v2 not only do we use phys_addr_t where we should to allow unit tests to pretend like high words matter on rv32, but we actually get it to work by adding a few more patches. Some new DBCN tests will make use of it.

Andrew Jones (7):
riscv: Fix virt_to_phys again
riscv: setup: Apply VA_BASE check to rv64
riscv: Support up to 34-bit physical addresses on rv32, sort of
riscv: Track memory above 3G
riscv: mmu: Sanity check input physical addresses
riscv: Define and use PHYS_PAGE_MASK
riscv: mmu: Ensure order of PTE update and sfence

 lib/memregions.h    |  1 +
 lib/riscv/asm/io.h  |  4 ++--
 lib/riscv/asm/mmu.h |  3 +++
 lib/riscv/mmu.c     | 45 +++++++++++++++++++++++++++++----------------
 lib/riscv/setup.c   | 19 +++++++++++++------
 lib/riscv/smp.c     |  7 ++++++-
 6 files changed, 54 insertions(+), 25 deletions(-)
Signature · 1 line
2.45.2