KVM: Consolidate arch specific vcpu ioctl locking
Now that all arch specific ioctls have centralized locking, it is easy to move it to the central dispatcher. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@ -2298,7 +2298,6 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
|
||||
int r;
|
||||
struct kvm_lapic_state *lapic = NULL;
|
||||
|
||||
vcpu_load(vcpu);
|
||||
switch (ioctl) {
|
||||
case KVM_GET_LAPIC: {
|
||||
r = -EINVAL;
|
||||
@ -2496,7 +2495,6 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
|
||||
r = -EINVAL;
|
||||
}
|
||||
out:
|
||||
vcpu_put(vcpu);
|
||||
kfree(lapic);
|
||||
return r;
|
||||
}
|
||||
|
Reference in New Issue
Block a user