diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-03-02 22:56:44 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-04 09:29:58 +0100 |
commit | b39c90b6560c4458d46cb243abea0dcb7bc126d1 (patch) | |
tree | 0504d13b96b7006735826f3fbbfbb5ac21bd4dc0 /.gitignore | |
parent | 09edea72b7f9fd8a8d26c1f7504d989b9773ee5e (diff) | |
download | blackbird-op-linux-b39c90b6560c4458d46cb243abea0dcb7bc126d1.tar.gz blackbird-op-linux-b39c90b6560c4458d46cb243abea0dcb7bc126d1.zip |
KVM: i8254: remove unnecessary uses of PIT state lock
- kvm_create_pit had to lock only because it exposed kvm->arch.vpit very
early, but initialization doesn't use kvm->arch.vpit since the last
patch, so we can drop locking.
- kvm_free_pit is only run after there are no users of KVM and therefore
is the sole actor.
- Locking in kvm_vm_ioctl_reinject doesn't do anything, because reinject
is only protected at that place.
- kvm_pit_reset isn't used anywhere and its locking can be dropped if we
hide it.
Removing useless locking allows to see what actually is being protected
by PIT state lock (values accessible from the guest).
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions