From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1espdO-0002Fx-8B for qemu-devel@nongnu.org; Mon, 05 Mar 2018 07:54:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1espdK-0000zn-DA for qemu-devel@nongnu.org; Mon, 05 Mar 2018 07:54:30 -0500 Date: Mon, 5 Mar 2018 13:54:14 +0100 From: Cornelia Huck Message-ID: <20180305135414.11681139.cohuck@redhat.com> In-Reply-To: <20180228195320.165230-1-borntraeger@de.ibm.com> References: <20180228195320.165230-1-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] s390/kvm: implement clearing part of IPL clear List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: qemu-s390x , qemu-devel , Thomas Huth , David Hildenbrand , Halil Pasic , Janosch Frank On Wed, 28 Feb 2018 19:53:20 +0000 Christian Borntraeger wrote: > When a guests reboots with diagnose 308 subcode 3 it requests the memory > to be cleared. We did not do it so far. This does not only violate the > architecture, it also misses the chance to free up that memory on > reboot, which would help on host memory over commitment. By using > ram_block_discard_range we can cover both cases. > > Signed-off-by: Christian Borntraeger > --- > target/s390x/kvm.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) So, this needs more thought (and additional kernel changes)? (Trying to pick up patches that make sense for 2.12.)