KVM: s390/mm: Make pages accessible before destroying the guest
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 16 Dec 2019 15:48:11 +0000 (10:48 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2020 18:47:11 +0000 (19:47 +0100)
commit1274800792dced8e5b6d54c71ec049c4d1e34189
tree7d969ddc78286f9cc4e7e623f3115b25967766ce
parentfa0c5eabbdd33012b369cf75d6a39389cc9ae707
KVM: s390/mm: Make pages accessible before destroying the guest

Before we destroy the secure configuration, we better make all
pages accessible again. This also happens during reboot, where we reboot
into a non-secure guest that then can go again into secure mode. As
this "new" secure guest will have a new ID we cannot reuse the old page
state.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
arch/s390/include/asm/gmap.h
arch/s390/kvm/pv.c
arch/s390/mm/gmap.c