From: Thomas Huth Subject: Re: [PATCH kvm-unit-tests v2 06/11] s390x: detect installed memory Date: Mon, 15 Jan 2018 11:56:07 +0100 Message-ID: <8c4a6b72-4811-8234-de46-51efca5220ef@redhat.com> References: <20180112143417.16743-1-david@redhat.com> <20180112143417.16743-7-david@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Christian Borntraeger , Cornelia Huck To: David Hildenbrand , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754053AbeAOK4S (ORCPT ); Mon, 15 Jan 2018 05:56:18 -0500 In-Reply-To: <20180112143417.16743-7-david@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 12.01.2018 15:34, David Hildenbrand wrote: > Unfortunately, there is no easy way to simply read out the amount > of installed memory. We have to probe (via TEST PROTECTION) for installed > memory in a given range. > > Signed-off-by: David Hildenbrand > --- > lib/s390x/asm/arch_def.h | 12 ++++++++++ > lib/s390x/asm/interrupt.h | 1 + > lib/s390x/interrupt.c | 11 +++++++++ > lib/s390x/io.c | 1 + > lib/s390x/sclp.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++ > lib/s390x/sclp.h | 1 + > s390x/Makefile | 1 + > 7 files changed, 85 insertions(+) > create mode 100644 lib/s390x/sclp.c Reviewed-by: Thomas Huth