Skip to content

s390x: vmalloc support

David Hildenbrand kvm 3 versions – Applied

Status from this message: Applied, thanks. Happy that the arm/x86 code generalized decently to s390!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 11 repliesApplied
  2. v211 patches 11 repliesSuperseded
  3. v19 patches 38 repliesSuperseded

Changes in v3 from the cover letter

- split up configure_dat() to make use of two functions extract_psw_mask() and load_psw_mask(), it is now much cleaner and we might need these functions in the future.
- Minor cleanups / comment fixes

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/11s390x: fix TEST BLOCK testss390x/intercept.c+3 -30 replies
2/11s390x: use highest addresses for PGM_ADDRESSING errorss390x/intercept.c s390x/selftest.c+6 -60 replies
3/11s390x: set initital stack pointer to stackptr, not stacktops390x/cstart64.S+1 -10 replies
4/11s390x: add missing sclp definitions from QEMUlib/s390x/sclp.h+106 -10 replies
5/11s390x: rename sclp_setup() to sclp_ascii_setup()lib/s390x/io.c lib/s390x/sclp-ascii.c lib/s390x/sclp.h+7 -50 replies
6/11s390x: detect installed memorylib/s390x/asm/arch_def.h lib/s390x/asm/interrupt.h lib/s390x/interrupt.c +4 more+85 -00 replies
7/11s390x: initialize the physical allocatorlib/s390x/sclp.c s390x/Makefile+15 -02 replies
8/11s390x: add vmalloc supportlib/s390x/asm/arch_def.h lib/s390x/asm/page.h lib/s390x/asm/pgtable.h +3 more+402 -00 replies
9/11s390x: enable DAT in PGM interrupt handlerlib/s390x/mmu.c+4 -00 replies
10/11s390x: add test for (v)mallocs390x/selftest.c+29 -00 replies
11/11s390x: add sieve tests390x/Makefile s390x/sieve.c s390x/unittests.cfg+66 -08 replies

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11
8/11
9/11
10/11R-b
11/11

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 kvm-unit-tests v3 00/11] s390x: vmalloc support

This series implements
- detection of installed physical memory
- setup of the physical allocator
- setup of the MMU / page tables / DAT
- setup of the virtual allocator

The CPU now runs with DAT enabled. I added a small test to make sure malloc() indeed works and uses virtual adresses. Also, the sieve test is added.

While at it, fix the TEST BLOCK test on newer compilers.

Tested with upsteam QEMU TCG and KVM. However, to pass under TCG a fix is necessary ("[PATCH v1] s390x/tcg: fix disabling/enabling DAT").

v2 -> v3:
- split up configure_dat() to make use of two functions extract_psw_mask() and load_psw_mask(), it is now much cleaner and we might need these functions in the future.
- Minor cleanups / comment fixes

David Hildenbrand (11):
s390x: fix TEST BLOCK tests
s390x: use highest addresses for PGM_ADDRESSING errors
s390x: set initital stack pointer to stackptr, not stacktop
s390x: add missing sclp definitions from QEMU
s390x: rename sclp_setup() to sclp_ascii_setup()
s390x: detect installed memory
s390x: initialize the physical allocator
s390x: add vmalloc support
s390x: enable DAT in PGM interrupt handler
s390x: add test for (v)malloc
s390x: add sieve test

 lib/s390x/asm/arch_def.h  |  58 ++++++++++++
 lib/s390x/asm/interrupt.h |   1 +
 lib/s390x/asm/page.h      |  24 +++++
 lib/s390x/asm/pgtable.h   | 224 ++++++++++++++++++++++++++++++++++++++++++++++
 lib/s390x/interrupt.c     |  11 +++
 lib/s390x/io.c            |   3 +-
 lib/s390x/mmu.c           | 108 ++++++++++++++++++++++
 lib/s390x/sclp-ascii.c    |   6 +-
 lib/s390x/sclp.c          |  72 +++++++++++++++
 lib/s390x/sclp.h          | 112 ++++++++++++++++++++++-
 s390x/Makefile            |   7 ++
 s390x/cstart64.S          |   2 +-
 s390x/intercept.c         |  14 +--
 s390x/selftest.c          |  31 ++++++-
 s390x/sieve.c             |  59 ++++++++++++
 s390x/unittests.cfg       |   6 ++
 16 files changed, 723 insertions(+), 15 deletions(-)
 create mode 100644 lib/s390x/asm/pgtable.h
 create mode 100644 lib/s390x/mmu.c
 create mode 100644 lib/s390x/sclp.c
 create mode 100644 s390x/sieve.c
Signature · 1 line
2.14.3