Message ID | 20240411161441.910170-1-david@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | s390/mm: shared zeropage + KVM fixes | expand |
On Thu, 11 Apr 2024 18:14:39 +0200 David Hildenbrand <david@redhat.com> 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?
On 11.04.24 23:28, Andrew Morton wrote: > On Thu, 11 Apr 2024 18:14:39 +0200 David Hildenbrand <david@redhat.com> 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).
> David Hildenbrand (2): > mm/userfaultfd: don't place zeropages when zeropages are disallowed > s390/mm: re-enable the shared zeropage for !PV and !skeys KVM guests > > arch/s390/include/asm/gmap.h | 2 +- > arch/s390/include/asm/mmu.h | 5 + > arch/s390/include/asm/mmu_context.h | 1 + > arch/s390/include/asm/pgtable.h | 16 ++- > arch/s390/kvm/kvm-s390.c | 4 +- > arch/s390/mm/gmap.c | 163 +++++++++++++++++++++------- > mm/userfaultfd.c | 34 ++++++ > 7 files changed, 178 insertions(+), 47 deletions(-) Applied. Thanks, David!
On Thu, Apr 11, 2024 at 06:14:39PM +0200, David Hildenbrand wrote: Hi David, > Based on s390/features. Andrew agreed that both patches can go via the > s390x tree. I am going to put on a branch this series together with the selftest: https://lore.kernel.org/r/20240412084329.30315-1-david@redhat.com I there something in s390/features your three patches depend on? Or v6.9-rc2 contains everything needed already? Thanks!
On 17.04.24 14:46, Alexander Gordeev wrote: > On Thu, Apr 11, 2024 at 06:14:39PM +0200, David Hildenbrand wrote: > > Hi David, > >> Based on s390/features. Andrew agreed that both patches can go via the >> s390x tree. > > I am going to put on a branch this series together with the selftest: > https://lore.kernel.org/r/20240412084329.30315-1-david@redhat.com > > I there something in s390/features your three patches depend on? > Or v6.9-rc2 contains everything needed already? v6.9-rc2 should have all we need IIRC.