Re: [PATCH] KVM: x86: Convert INIT and SIPI signals into synchronously handled events

Gleb Natapov
2013-03-12T12:29:27Z

On Tue, Mar 12, 2013 at 01:06:59PM +0100, Paolo Bonzini wrote:
> > @@ -6171,6 +6169,7 @@ int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu,
> > int kvm_arch_vcpu_ioctl_get_mpstate(struct kvm_vcpu *vcpu,
> > struct kvm_mp_state *mp_state)
> > {
> > + kvm_apic_accept_events(vcpu);
>
> Is this racy against __vcpu_run?
>
FWIW both of them are vcpu ioctl and thus run under vcpu mutex.

--
Gleb.