diff options
author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2022-11-11 18:06:32 +0100 |
---|---|---|
committer | Janosch Frank <frankja@linux.ibm.com> | 2022-11-23 09:06:50 +0000 |
commit | cc726886079febfa2384d77486d7f3a11f951ea9 (patch) | |
tree | 74dbe42189d9e8f3446d215deaa880077523fbfa /arch/s390 | |
parent | f7866f582b1c9d80d1a3bd0953170185668c52ca (diff) | |
download | linux-stable-cc726886079febfa2384d77486d7f3a11f951ea9.tar.gz linux-stable-cc726886079febfa2384d77486d7f3a11f951ea9.tar.bz2 linux-stable-cc726886079febfa2384d77486d7f3a11f951ea9.zip |
KVM: s390: pv: module parameter to fence asynchronous destroy
Add the module parameter "async_destroy", to allow the asynchronous
destroy mechanism to be switched off. This might be useful for
debugging purposes.
The parameter is enabled by default since the feature is opt-in anyway.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/r/20221111170632.77622-7-imbrenda@linux.ibm.com
Message-Id: <20221111170632.77622-7-imbrenda@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index b6cc7d2935c0..8a0c884bf737 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -209,7 +209,13 @@ unsigned int diag9c_forwarding_hz; module_param(diag9c_forwarding_hz, uint, 0644); MODULE_PARM_DESC(diag9c_forwarding_hz, "Maximum diag9c forwarding per second, 0 to turn off"); -static int async_destroy; +/* + * allow asynchronous deinit for protected guests; enable by default since + * the feature is opt-in anyway + */ +static int async_destroy = 1; +module_param(async_destroy, int, 0444); +MODULE_PARM_DESC(async_destroy, "Asynchronous destroy for protected guests"); /* * For now we handle at most 16 double words as this is what the s390 base |