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:
Avi Kivity
2010-05-13 12:35:17 +03:00
parent 19483d1440
commit 9373662463
4 changed files with 10 additions and 18 deletions

View File

@@ -1578,9 +1578,7 @@ out_free2:
break;
}
default:
vcpu_put(vcpu);
r = kvm_arch_vcpu_ioctl(filp, ioctl, arg);
vcpu_load(vcpu);
}
out:
vcpu_put(vcpu);