Re: [PATCH v2 07/14] KVM: x86: remove unnecessary uses of PIT state lock

From: Paolo Bonzini
Date: Thu Feb 18 2016 - 13:03:59 EST




On 17/02/2016 20:14, Radim KrÄmÃÅ wrote:
> + /* All members before "struct mutex lock" are protected by the lock. */

... except reinject, according to the commit message. :)

Paolo

> struct kvm_kpit_channel_state channels[3];
> u32 flags;
> bool is_periodic;
> s64 period; /* unit: ns */
> struct hrtimer timer;
> - atomic_t pending; /* accumulated triggered timers */
> bool reinject;
> - struct kvm *kvm;
> u32 speaker_data_on;
> +