Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp85616lqn; Thu, 11 Apr 2024 14:56:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO5wAsXnd6R6qbC8dYs9rX8wZdGm5FFTahNbfjlO0kszIo7f5n/mxXK9K3wlsd9kDDmC/zREeDictappPoR52Mpjp1Qz/evtrUSfxosQ== X-Google-Smtp-Source: AGHT+IE9ImT8NhRDsN0neQzMyES5kPKBDqTPoBxicksvQbt/82ti8DKso3rxwQy178KM4lqy7dHu X-Received: by 2002:a81:b553:0:b0:618:4203:575b with SMTP id c19-20020a81b553000000b006184203575bmr743353ywk.41.1712872596041; Thu, 11 Apr 2024 14:56:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712872596; cv=pass; d=google.com; s=arc-20160816; b=lV81YnkixQ262AIIWqQRJuP3oO5aTou3N1skHBQntlbWwr2H725b9flAMzRfE4Gpx+ Yd5gqP7XSZBNZtzcPDzXKmUtOEExp7CjFrf+0c/jTxU4d4IaXked1AZJNiHk6jTuYTW6 ouDWkVFkMkrOCm85YNhD0g62Sc9l3792FbZhr0dHtSZTvYbTofjUC4PZXQr4yRYUnv4b EYUNTtMPNxeTXby9nr29qn0Mqg0u6EgzP4M+Re2SDITLWkSLp3/ds0hX95rG9OcNj6cJ 8kbQlj/azdbHpoy/35gIQDtQVh/1xdmDRZsCgPkYmHYSsOsXwK3/mDrY1gElTRi/oWGO CVWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=17cEp70emcR4rsskSoF5355Y01DTz+evFBkVVlPWVYM=; fh=7yzkWs2Pz/nAmh4ddWHN3Q7CLfWVeDRswticl+5WEig=; b=E4MsDDzZFE4T5oSyDMsxIFw5Lksxwm1J8ZpIPLrMYaCDkXr852Cqz/FZSZpGsdAMSp cU80V1jpRqJqr64EvVLWmHpGiek1Upc46HIjzRoWdVZ/7FAXHvXCJhrHP/gHSna09C0f YHLc5ggc3fU8l2ARtxzWmow4vxkoadYaMREHgVazuws2LiyJz8L21RpKVYphmrZbrgbS DUSEE/MPMOyQdlJBQdcdHFasfVW+OnCl89wq/R6fvHa7du853z3vKGdYns+sUaye745u g17d/TFMKgeNZt21u03jtrJta43PJpWytvv0aL06IzooaaDCfv/FWViwUJ4J6gvFtwGl /jzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VxvWXZFa; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-141650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p9-20020ad452c9000000b00696a2af2eafsi2294230qvs.610.2024.04.11.14.56.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 14:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VxvWXZFa; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-141650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B11B21C216B9 for ; Thu, 11 Apr 2024 21:56:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79B703CF74; Thu, 11 Apr 2024 21:56:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VxvWXZFa" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 300C73B182 for ; Thu, 11 Apr 2024 21:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712872585; cv=none; b=szm9gH3gEKpVoh7ThFf8tVttxTn/twhoF1vZUqtyNT/6a9FDE/xRLqOxEcRiIRA8JeM/fJsnQ+bfNSZQm4E9YMRahIyBfExoiRIqEqzqkEuo7wJeJBLIIZEkUVKSwflnw6M0qKSd+KnFS5XKbgVIxmqSSGPgmVy8424OVQRHCzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712872585; c=relaxed/simple; bh=YtUXUfwt59oxs0K0DSScCe6Vrtt6dJnBuXwvnWkDtQA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HBrWY65j5ULrF76aRMozqpG5vC7V499fisZMdqq/KxeR9lFHpAQRFBfxEmFy90aW83JZ+fnnEPYtBWSFSIrc+YhBUE868yGuxAcWH08hczIYvDpaXZoSiKRCamlB9I0kSXJIYq9CJHGhMtZPuYUmq87766F01kDJzhxerWUq7wM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=VxvWXZFa; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712872583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=17cEp70emcR4rsskSoF5355Y01DTz+evFBkVVlPWVYM=; b=VxvWXZFaj+CekwwzdvFOjxzWR661dzR6gfR5EhfF9pShjJg+iVdmZgn/AM/0VGd67/quI5 wGJSXFTvXZQZPduCuvz2E4PdAHBCSLbxf4JbB19Sa4NjUxsBWbHX/pYL4/FBg1fUByYg9L sM1zgiF3jL/3J1dSp99KJKx4lj5sA2M= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-c7nc0wDOPM68dMxhW_txCA-1; Thu, 11 Apr 2024 17:56:21 -0400 X-MC-Unique: c7nc0wDOPM68dMxhW_txCA-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-343e00c8979so147965f8f.1 for ; Thu, 11 Apr 2024 14:56:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712872580; x=1713477380; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=17cEp70emcR4rsskSoF5355Y01DTz+evFBkVVlPWVYM=; b=JsQBt1WBvHG+3gKtzB4l0JFhb/eNUbnTVdrpWJ0x/EixviriOlFbhv6HVKRwN1SEsd kaCR/WUy2bdAWCTx/YwF/u03gArQmh9ZmppUqUAan1ve7XJvad0lfzVBPiEwX2AViVRj pKr41km+13fPH/K9qnAij4WJEu4zbBA6cUin9PmxO7VxzVZ1ptEw5xc2IkACDMjsWfip h6JyVylZ5Bg/Komqh1PxPczsjCbvfaATUy0jKfxN+B0IoDtjfEsMLIBvdoNmjlhO1dtY HtsTwENbW0+I926p22rzcnUIGlAF/V1SbpqiBscL1kppGVYsQBMKgBYEN14kT4L0KnFt cDCA== X-Gm-Message-State: AOJu0YxDb7trPghJ3+g3n8GZPUfp71o4Eovinvp+PbubaRviSS8t/bq0 BWm/0pkBBfH2e8U02ThKXRCtNc1IrxDIAPaEcJlKZQvkBZVMa9A19XxHiK8GYpL3SP1KZD1ALJi jJCboJJEa7hjNbXqRiDPekZ0/oU2qCONR2xN69XgCClk2YxnM48usBq6EszCcOdmxVDohKw== X-Received: by 2002:a05:6000:248:b0:343:ab0f:4dd6 with SMTP id m8-20020a056000024800b00343ab0f4dd6mr441086wrz.33.1712872580218; Thu, 11 Apr 2024 14:56:20 -0700 (PDT) X-Received: by 2002:a05:6000:248:b0:343:ab0f:4dd6 with SMTP id m8-20020a056000024800b00343ab0f4dd6mr441078wrz.33.1712872579849; Thu, 11 Apr 2024 14:56:19 -0700 (PDT) Received: from ?IPV6:2003:cb:c724:4300:430f:1c83:1abc:1d66? (p200300cbc7244300430f1c831abc1d66.dip0.t-ipconnect.de. [2003:cb:c724:4300:430f:1c83:1abc:1d66]) by smtp.gmail.com with ESMTPSA id i4-20020a5d6304000000b003437ad152f9sm2703535wru.105.2024.04.11.14.56.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Apr 2024 14:56:19 -0700 (PDT) Message-ID: <3dbf706f-b6ca-45d7-a293-12aa5807fcdf@redhat.com> Date: Thu, 11 Apr 2024 23:56:18 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/2] s390/mm: shared zeropage + KVM fixes To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Heiko Carstens , Vasily Gorbik , Peter Xu , Alexander Gordeev , Sven Schnelle , Gerald Schaefer , Andrea Arcangeli , kvm@vger.kernel.org, linux-s390@vger.kernel.org References: <20240411161441.910170-1-david@redhat.com> <20240411142827.d5c3bc401c6536bb1315049a@linux-foundation.org> From: David Hildenbrand Content-Language: en-US Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7V2Yb+SYhmhpDrti9Fq1EsmhiHS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PNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <20240411142827.d5c3bc401c6536bb1315049a@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11.04.24 23:28, Andrew Morton wrote: > On Thu, 11 Apr 2024 18:14:39 +0200 David Hildenbrand wrote: > >> This series fixes one issue with uffd + shared zeropages on s390x and >> fixes that "ordinary" KVM guests can make use of shared zeropages again. >> >> ... >> >> Without the shared zeropage, during (2), the VM would suddenly consume >> 100 GiB on the migration source and destination. On the migration source, >> where we don't excpect memory overcommit, we could easilt end up crashing >> the VM during migration. >> >> Independent of that, memory handed back to the hypervisor using "free page >> reporting" would end up consuming actual memory after the migration on the >> destination, not getting freed up until reused+freed again. >> > > Is a backport desirable? > > If so, the [1/2] Fixes dates back to 2015 and the [2/2] Fixes is from > 2017. Is it appropriate that the patches be backported so far back, > and into different kernel versions? > [2/2] won't be easy to backport to kernels without FAULT_FLAG_UNSHARE, so I wouldn't really suggest backports to kernels before that. [1/2] might be reasonable to backport, but might require some tweaking (page vs. folio). -- Cheers, David / dhildenb