Skip to content

Commit 1e2aa46

Browse files
Claudio Imbrendaborntraeger
authored andcommitted
KVM: s390: pv: avoid stalls for kvm_s390_pv_init_vm
When the system is heavily overcommitted, kvm_s390_pv_init_vm might generate stall notifications. Fix this by using uv_call_sched instead of just uv_call. This is ok because we are not holding spinlocks. Signed-off-by: Claudio Imbrenda <[email protected]> Fixes: 214d9bb ("s390/mm: provide memory management functions for protected KVM guests") Reviewed-by: Christian Borntraeger <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Message-Id: <[email protected]> Signed-off-by: Janosch Frank <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent d407432 commit 1e2aa46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kvm/pv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int kvm_s390_pv_init_vm(struct kvm *kvm, u16 *rc, u16 *rrc)
195195
uvcb.conf_base_stor_origin = (u64)kvm->arch.pv.stor_base;
196196
uvcb.conf_virt_stor_origin = (u64)kvm->arch.pv.stor_var;
197197

198-
cc = uv_call(0, (u64)&uvcb);
198+
cc = uv_call_sched(0, (u64)&uvcb);
199199
*rc = uvcb.header.rc;
200200
*rrc = uvcb.header.rrc;
201201
KVM_UV_EVENT(kvm, 3, "PROTVIRT CREATE VM: handle %llx len %llx rc %x rrc %x",

0 commit comments

Comments
 (0)