KVM: i8254: turn kvm_kpit_state.reinject into atomic_t
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 2 Mar 2016 21:56:52 +0000 (22:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Mar 2016 08:30:25 +0000 (09:30 +0100)
commita0aace5ac0efdb2bcb71e10d9c9ca6a851fa59f9
treef91033e50e172a450daeff324a4dc9f1e880fa1f
parentab4c14763b434d48bc7732e475ff4d5b6b9d3e3b
KVM: i8254: turn kvm_kpit_state.reinject into atomic_t

Document possible races between readers and concurrent update to the
ioctl.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h