All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: kvm@vger.kernel.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Christian Borntraeger" <borntraeger@de.ibm.com>,
	"Cornelia Huck" <cohuck@redhat.com>
Subject: [PATCH kvm-unit-tests v2 00/11] s390x: vmalloc support
Date: Fri, 12 Jan 2018 15:34:06 +0100	[thread overview]
Message-ID: <20180112143417.16743-1-david@redhat.com> (raw)

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.

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

Tested with upsteam QEMU TCG and KVM. However, to pass under TCG a
couple of fixes are necessary (e.g. disabling DAT does not work). Will
post them shortly.

v1 -> v2:
- "s390x: use highest addresses for PGM_ADDRESSING errors"
 - UL -> L
- "s390x: set initital stack pointer to stackptr, not stacktop"
 - added
- "s390x: add missing sclp definitions from QEMU"
 - fix copyright statement
- "s390x: rename sclp_setup() to sclp_ascii_setup()"
 - also expose the buffer
- "s390x: detect installed memory"
 - use tprot correctly (we have to test for exceptions, too)
 - fix tprot address in asm (r vs Q)
- "s390x: initialize the physical allocator"
 - move freemem_start into mem_init()
 - get rid of the "+ PAGE_SIZE" hack
- "s390x: add vmalloc support"
 - not adding always_inline, as functions in headers are always inlined
   (and always_inline will not compile)
 - configure_dat():
  - move to mmu.c
  - use labels 0/1 and reference by 0f/1f, otherwise we might have duplicate
    labels and the compiler complains when inlining
  - use two local variables, fix store
 - don't enable DAT in PGM interrupt as default
- "s390x: enable DAT in PGM interrupt handler"
 - added
- "s390x: add test for (v)malloc"
 - use a mb() and read values to check validity
 - test only for the highest bits
 - disable DAT to test if we actually have a virtual address
- "s390x: add sieve test"
 - copied it (unfortunately no copyright statement?)
 - minor styl corrections + temporarily disable DAT


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  |  31 +++++++
 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           | 125 ++++++++++++++++++++++++++
 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, 713 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

-- 
2.14.3

             reply	other threads:[~2018-01-12 14:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 14:34 David Hildenbrand [this message]
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 01/11] s390x: fix TEST BLOCK tests David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 02/11] s390x: use highest addresses for PGM_ADDRESSING errors David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 03/11] s390x: set initital stack pointer to stackptr, not stacktop David Hildenbrand
2018-01-12 16:04   ` Thomas Huth
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 04/11] s390x: add missing sclp definitions from QEMU David Hildenbrand
2018-01-15 10:46   ` Thomas Huth
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 05/11] s390x: rename sclp_setup() to sclp_ascii_setup() David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 06/11] s390x: detect installed memory David Hildenbrand
2018-01-15 10:56   ` Thomas Huth
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 07/11] s390x: initialize the physical allocator David Hildenbrand
2018-01-15 10:16   ` Andrew Jones
2018-01-15 10:21     ` David Hildenbrand
2018-01-15 10:31       ` Paolo Bonzini
2018-01-15 10:35         ` David Hildenbrand
2018-01-15 10:38     ` Paolo Bonzini
2018-01-15 10:50       ` Andrew Jones
2018-01-15 10:42     ` David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 08/11] s390x: add vmalloc support David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 09/11] s390x: enable DAT in PGM interrupt handler David Hildenbrand
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 10/11] s390x: add test for (v)malloc David Hildenbrand
2018-01-15 10:58   ` Thomas Huth
2018-01-12 14:34 ` [PATCH kvm-unit-tests v2 11/11] s390x: add sieve test David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180112143417.16743-1-david@redhat.com \
    --to=david@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.