Skip to content

Commit cc72688

Browse files
Claudio Imbrendafrankjaa
authored andcommitted
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 <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Reviewed-by: Steffen Eiden <[email protected]> Reviewed-by: Nico Boehr <[email protected]> Link: https://lore.kernel.org/r/[email protected] Message-Id: <[email protected]> Signed-off-by: Janosch Frank <[email protected]>
1 parent f7866f5 commit cc72688

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,13 @@ unsigned int diag9c_forwarding_hz;
209209
module_param(diag9c_forwarding_hz, uint, 0644);
210210
MODULE_PARM_DESC(diag9c_forwarding_hz, "Maximum diag9c forwarding per second, 0 to turn off");
211211

212-
static int async_destroy;
212+
/*
213+
* allow asynchronous deinit for protected guests; enable by default since
214+
* the feature is opt-in anyway
215+
*/
216+
static int async_destroy = 1;
217+
module_param(async_destroy, int, 0444);
218+
MODULE_PARM_DESC(async_destroy, "Asynchronous destroy for protected guests");
213219

214220
/*
215221
* For now we handle at most 16 double words as this is what the s390 base

0 commit comments

Comments
 (0)