From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCHv0 dont apply] RFC: kvm eoi PV using shared memory Date: Tue, 10 Apr 2012 22:40:14 +0300 Message-ID: <20120410194014.GF21805@redhat.com> References: <20120410132756.GA14101@redhat.com> <4F843DAA.1000808@redhat.com> <20120410142616.GB19556@redhat.com> <20120410175921.GB20431@redhat.com> <20120410193003.GD21805@redhat.com> <20120410193354.GD20431@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755559Ab2DJTkB (ORCPT ); Tue, 10 Apr 2012 15:40:01 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q3AJe1SX010851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 10 Apr 2012 15:40:01 -0400 Content-Disposition: inline In-Reply-To: <20120410193354.GD20431@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Apr 10, 2012 at 10:33:54PM +0300, Gleb Natapov wrote: > > We don't try to match what HV does 100% anyway. > > > We should. The same code will be used for HV. Only where it makes sense, that is where the functionality is sufficiently similar. > > > We have to notify IOAPIC about EOI ASAP. It > > > may hold another interrupt for us that has to be delivered. > > > > You mean the ack notifiers? We can skip just for the vectors > > which have ack notifiers or only if there are no notifiers. > > > No. I mean: > > if (!ent->fields.mask && (ioapic->irr & (1 << i))) > ioapic_service(ioapic, i); Hmm.