From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCHv4 3/5] kvm: host side for eoi optimization Date: Wed, 16 May 2012 18:37:01 -0300 Message-ID: <20120516213701.GD25397@amt.cnet> References: <42ba7beaa25855997e02fea91a11c9224c51720e.1337168687.git.mst@redhat.com> <20120516154940.GA20549@amt.cnet> <20120516162247.GA10676@redhat.com> <20120516172058.GA22861@amt.cnet> <20120516175856.GD10769@redhat.com> <20120516181500.GA23791@amt.cnet> <20120516182520.GH28798@redhat.com> <20120516182948.GF10769@redhat.com> <20120516183822.GI28798@redhat.com> <20120516190757.GA12113@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Gleb Natapov , x86@kernel.org, kvm@vger.kernel.org, Ingo Molnar , "H. Peter Anvin" , Avi Kivity , Linus Torvalds , linux-kernel@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Content-Disposition: inline In-Reply-To: <20120516190757.GA12113@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, May 16, 2012 at 10:07:58PM +0300, Michael S. Tsirkin wrote: > > not be called in above scenario. > > I think I see. So this shall fix it also makes code cleaner > (no -2 hack). Right? kvm_apic_has_interrupt is called correct? Yes, but its used by multiple callsites. Best to unify it (both setting and clearing) in KVM_REQ_EVENT processing before guest entry.