s390/mm: KVM: pv: when tearing down, try to destroy protected pages
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 28 Jun 2022 13:56:11 +0000 (15:56 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Tue, 19 Jul 2022 12:06:56 +0000 (12:06 +0000)
commit9bf811dae443794594615625577277852edc181b
tree1110f92cd7638f5c876a1d1c873ae0051a5fae6d
parentca2fd0609b5ddd15fe57c917a41508a7a9fc17e1
s390/mm: KVM: pv: when tearing down, try to destroy protected pages

When ptep_get_and_clear_full is called for a mm teardown, we will now
attempt to destroy the secure pages. This will be faster than export.

In case it was not a teardown, or if for some reason the destroy page
UVC failed, we try with an export page, like before.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/r/20220628135619.32410-11-imbrenda@linux.ibm.com
Message-Id: <20220628135619.32410-11-imbrenda@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/include/asm/pgtable.h