From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hildenbrand Subject: [PATCH kvm-unit-tests 0/9] s390x: vmalloc support Date: Wed, 10 Jan 2018 22:53:39 +0100 Message-ID: <20180110215348.315-1-david@redhat.com> Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Thomas Huth , Christian Borntraeger , Cornelia Huck To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46832 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbeAJVxv (ORCPT ); Wed, 10 Jan 2018 16:53:51 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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. David Hildenbrand (9): s390x: fix TEST BLOCK tests s390x: use highest addresses for PGM_ADDRESSING errors s390x: increase the stack size 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: add test for (v)malloc lib/s390x/asm/arch_def.h | 57 ++++++++++++ lib/s390x/asm/page.h | 24 +++++ lib/s390x/asm/pgtable.h | 222 +++++++++++++++++++++++++++++++++++++++++++++++ lib/s390x/io.c | 3 +- lib/s390x/mmu.c | 90 +++++++++++++++++++ lib/s390x/sclp-ascii.c | 4 +- lib/s390x/sclp.c | 66 ++++++++++++++ lib/s390x/sclp.h | 111 +++++++++++++++++++++++- s390x/Makefile | 6 ++ s390x/cstart64.S | 3 +- s390x/flat.lds | 2 +- s390x/intercept.c | 14 +-- s390x/selftest.c | 19 +++- 13 files changed, 606 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 -- 2.14.3