diff options
author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2023-07-05 13:19:36 +0200 |
---|---|---|
committer | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2023-07-18 11:21:51 +0200 |
commit | 5ff92181577a89ed12ad4e0e5813751faf16a139 (patch) | |
tree | 473e3642300005f46841a559417d39cabdf9ca04 /lib/crypto/mpi/mpi-mod.c | |
parent | fdf0eaf11452d72945af31804e2a1048ee1b574c (diff) |
KVM: s390: pv: simplify shutdown and fix race
Simplify the shutdown of non-protected VMs. There is no need to do
complex manipulations of the counter if it was zero.
This also fixes a very rare race which caused pages to be torn down
from the address space with a non-zero counter even on older machines
that don't support the UVC instruction, causing a crash.
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Fixes: fb491d5500a7 ("KVM: s390: pv: asynchronous destroy for reboot")
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20230705111937.33472-2-imbrenda@linux.ibm.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions