s390/uv: add destroy page call
authorJanosch Frank <frankja@linux.ibm.com>
Mon, 7 Sep 2020 12:46:59 +0000 (08:46 -0400)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 09:38:35 +0000 (11:38 +0200)
commit1a80b54d1ce1556bba6a8d8cd9384d6a9dcb641a
treefdbda1789a1e4338480d69a040182a83d8764b42
parente670e64af1d46571be3d9b1177024d9c8520087c
s390/uv: add destroy page call

We don't need to export pages if we destroy the VM configuration
afterwards anyway. Instead we can destroy the page which will zero it
and then make it accessible to the host.

Destroying is about twice as fast as the export.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/kvm/20200907124700.10374-2-frankja@linux.ibm.com/
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/uv.h
arch/s390/kernel/uv.c
arch/s390/mm/gmap.c