Skip to content
Commit 5ff92181 authored by Claudio Imbrenda's avatar Claudio Imbrenda
Browse files

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: default avatarMarc Hartmayer <mhartmay@linux.ibm.com>
Fixes: fb491d55 ("KVM: s390: pv: asynchronous destroy for reboot")
Reviewed-by: default avatarNico Boehr <nrb@linux.ibm.com>
Signed-off-by: default avatarClaudio Imbrenda <imbrenda@linux.ibm.com>
Message-ID: <20230705111937.33472-2-imbrenda@linux.ibm.com>
parent fdf0eaf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment