Thanks to visit codestin.com Credit goes to github.com
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 f8c74cf commit 23555caCopy full SHA for 23555ca
arch/x86/kvm/x86.c
@@ -3372,14 +3372,17 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
3372
};
3373
case KVM_SET_VAPIC_ADDR: {
3374
struct kvm_vapic_addr va;
3375
+ int idx;
3376
3377
r = -EINVAL;
3378
if (!lapic_in_kernel(vcpu))
3379
goto out;
3380
r = -EFAULT;
3381
if (copy_from_user(&va, argp, sizeof va))
3382
3383
+ idx = srcu_read_lock(&vcpu->kvm->srcu);
3384
r = kvm_lapic_set_vapic_addr(vcpu, va.vapic_addr);
3385
+ srcu_read_unlock(&vcpu->kvm->srcu, idx);
3386
break;
3387
}
3388
case KVM_X86_SETUP_MCE: {
0 commit comments