From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: Claudio Imbrenda <imbrenda@linux.ibm.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
David Hildenbrand <david@redhat.com>,
linux-mm@kvack.org, linux-s390@vger.kernel.org
Subject: [PATCH 2/2] s390: Convert vsie code to use page->private
Date: Thu, 19 Dec 2024 16:22:50 +0000 [thread overview]
Message-ID: <20241219162252.1025317-3-willy@infradead.org> (raw)
In-Reply-To: <20241219162252.1025317-1-willy@infradead.org>
The vsie pages are not standard page tables, so do not convert them to
use ptdesc. Howver, page->index is going away so use page->private to
store the address rather than page->index.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
arch/s390/kvm/vsie.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/s390/kvm/vsie.c b/arch/s390/kvm/vsie.c
index 150b9387860a..26cbd69eb06d 100644
--- a/arch/s390/kvm/vsie.c
+++ b/arch/s390/kvm/vsie.c
@@ -1393,9 +1393,9 @@ static struct vsie_page *get_vsie_page(struct kvm *kvm, unsigned long addr)
kvm->arch.vsie.next++;
kvm->arch.vsie.next %= nr_vcpus;
}
- radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->index >> 9);
+ radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->private >> 9);
}
- page->index = addr;
+ page->private = addr;
/* double use of the same address */
if (radix_tree_insert(&kvm->arch.vsie.addr_to_page, addr >> 9, page)) {
page_ref_dec(page);
@@ -1496,7 +1496,7 @@ void kvm_s390_vsie_destroy(struct kvm *kvm)
vsie_page = page_to_virt(page);
release_gmap_shadow(vsie_page);
/* free the radix tree entry */
- radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->index >> 9);
+ radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->private >> 9);
__free_page(page);
}
kvm->arch.vsie.page_count = 0;
--
2.45.2
next prev parent reply other threads:[~2024-12-19 16:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 16:22 [PATCH 0/2] s390: Remove uses of page->index Matthew Wilcox (Oracle)
2024-12-19 16:22 ` [PATCH 1/2] s390: Convert gmap code to use ptdesc Matthew Wilcox (Oracle)
2024-12-19 21:23 ` Matthew Wilcox
2024-12-20 9:22 ` David Hildenbrand
2024-12-19 16:22 ` Matthew Wilcox (Oracle) [this message]
2024-12-20 9:55 ` [PATCH 2/2] s390: Convert vsie code to use page->private David Hildenbrand
2024-12-20 11:40 ` Claudio Imbrenda
2024-12-19 16:33 ` [PATCH 0/2] s390: Remove uses of page->index David Hildenbrand
2024-12-19 16:52 ` Matthew Wilcox
2024-12-19 16:56 ` David Hildenbrand
2025-01-03 14:53 ` Claudio Imbrenda
2025-01-07 10:23 ` David Hildenbrand
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=20241219162252.1025317-3-willy@infradead.org \
--to=willy@infradead.org \
--cc=david@redhat.com \
--cc=imbrenda@linux.ibm.com \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
/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