From: David Hildenbrand <david@redhat.com>
To: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Janosch Frank <frankja@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Andrew Morton <akpm@linux-foundation.org>,
Peter Xu <peterx@redhat.com>, Sven Schnelle <svens@linux.ibm.com>,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>,
Andrea Arcangeli <aarcange@redhat.com>,
kvm@vger.kernel.org, linux-s390@vger.kernel.org
Subject: Re: [PATCH v2 2/2] s390/mm: re-enable the shared zeropage for !PV and !skeys KVM guests
Date: Thu, 11 Apr 2024 14:48:19 +0200 [thread overview]
Message-ID: <329758ca-c795-43a3-9788-d83c09247dce@redhat.com> (raw)
In-Reply-To: <ZhfYrVERxUijQbAL@li-008a6a4c-3549-11b2-a85c-c5cc2836eea2.ibm.com>
On 11.04.24 14:33, Alexander Gordeev wrote:
> On Wed, Mar 27, 2024 at 06:17:37PM +0100, David Hildenbrand wrote:
>> index 60950e7a25f5..1a71cb19c089 100644
>> --- a/arch/s390/include/asm/pgtable.h
>> +++ b/arch/s390/include/asm/pgtable.h
>> @@ -566,10 +566,19 @@ static inline pud_t set_pud_bit(pud_t pud, pgprot_t prot)
>> }
>>
>> /*
>> - * In the case that a guest uses storage keys
>> - * faults should no longer be backed by zero pages
>> + * As soon as the guest uses storage keys or enables PV, we deduplicate all
>> + * mapped shared zeropages and prevent new shared zeropages from getting
>> + * mapped.
>> */
>> -#define mm_forbids_zeropage mm_has_pgste
>
> Should it be the below insted?
>
> #define mm_forbids_zeropage mm_forbids_zeropage
>
> Once I add it, it fails to compile, due to the issue in patch #1.
I guess yes. So we tested the unsharing part (why I was seeing unsharing
triggering), but would have allowed zeropages afterwards. Sight.
Let me retest and resend. Thanks!
--
Cheers,
David / dhildenb
prev parent reply other threads:[~2024-04-11 12:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 17:17 [PATCH v2 0/2] s390/mm: shared zeropage + KVM fixes David Hildenbrand
2024-03-27 17:17 ` [PATCH v2 1/2] mm/userfaultfd: don't place zeropages when zeropages are disallowed David Hildenbrand
2024-04-11 12:26 ` Alexander Gordeev
2024-04-11 12:30 ` David Hildenbrand
2024-04-11 12:55 ` David Hildenbrand
2024-03-27 17:17 ` [PATCH v2 2/2] s390/mm: re-enable the shared zeropage for !PV and !skeys KVM guests David Hildenbrand
2024-04-11 12:33 ` Alexander Gordeev
2024-04-11 12:48 ` David Hildenbrand [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=329758ca-c795-43a3-9788-d83c09247dce@redhat.com \
--to=david@redhat.com \
--cc=aarcange@redhat.com \
--cc=agordeev@linux.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=borntraeger@linux.ibm.com \
--cc=frankja@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=peterx@redhat.com \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox