From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH] KVM: x86: Convert INIT and SIPI signals into synchronously handled events Date: Tue, 12 Mar 2013 14:29:24 +0200 Message-ID: <20130312122924.GA11223@redhat.com> References: <513F1529.3040309@siemens.com> <513F1A63.9070107@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kiszka , Marcelo Tosatti , kvm To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:41757 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701Ab3CLM31 (ORCPT ); Tue, 12 Mar 2013 08:29:27 -0400 Content-Disposition: inline In-Reply-To: <513F1A63.9070107@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.