summaryrefslogtreecommitdiff
path: root/arch/s390/kvm/sigp.c
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2022-06-28 16:56:13 +0300
committerJanosch Frank <frankja@linux.ibm.com>2022-07-19 15:06:56 +0300
commit7746f735f55205176a447e737fe15a5ba7a4d2d4 (patch)
tree4e76d7998ff5b8a7f550e04b10d880719861fe03 /arch/s390/kvm/sigp.c
parentda15fbc646f377ebfe992c13053b93783fea0db2 (diff)
downloadlinux-7746f735f55205176a447e737fe15a5ba7a4d2d4.tar.xz
KVM: s390: pv: destroy the configuration before its memory
Move the Destroy Secure Configuration UVC before the loop to destroy the memory. If the protected VM has memory, it will be cleaned up and made accessible by the Destroy Secure Configuration UVC. The struct page for the relevant pages will still have the protected bit set, so the loop is still needed to clean that up. Switching the order of those two operations does not change the outcome, but it is significantly faster. Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Link: https://lore.kernel.org/r/20220628135619.32410-13-imbrenda@linux.ibm.com Message-Id: <20220628135619.32410-13-imbrenda@linux.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'arch/s390/kvm/sigp.c')
0 files changed, 0 insertions, 0 deletions