We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1474bb commit 589e6ccCopy full SHA for 589e6cc
arch/loongarch/kvm/vcpu.c
@@ -240,7 +240,7 @@ static void kvm_late_check_requests(struct kvm_vcpu *vcpu)
240
*/
241
static int kvm_enter_guest_check(struct kvm_vcpu *vcpu)
242
{
243
- int ret;
+ int idx, ret;
244
245
/*
246
* Check conditions before entering the guest
@@ -249,7 +249,9 @@ static int kvm_enter_guest_check(struct kvm_vcpu *vcpu)
249
if (ret < 0)
250
return ret;
251
252
+ idx = srcu_read_lock(&vcpu->kvm->srcu);
253
ret = kvm_check_requests(vcpu);
254
+ srcu_read_unlock(&vcpu->kvm->srcu, idx);
255
256
257
}
0 commit comments