]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: vsie: stop messing with page refcount
authorDavid Hildenbrand <david@redhat.com>
Tue, 7 Jan 2025 15:43:43 +0000 (16:43 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Fri, 31 Jan 2025 11:03:43 +0000 (12:03 +0100)
commit905f5ce0835c938c501237d9371cdbc91d8f7e02
tree11bd064e3aa6f9b55ac2fa04e85e07231736b6d7
parentc5f64c98a1f7e4ca0e55b441620473389b8c7a72
KVM: s390: vsie: stop messing with page refcount

Let's stop messing with the page refcount, and use a flag that is set /
cleared atomically to remember whether a vsie page is currently in use.

Note that we could use a page flag, or a lower bit of the scb_gpa. Let's
keep it simple for now, we have sufficient space.

While at it, stop passing "struct kvm *" to put_vsie_page(), it's
unused.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Tested-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Message-ID: <20250107154344.1003072-4-david@redhat.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/vsie.c