From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: [PATCH v2] interrupts: allow guest to set and clear MSI-X mask bit Date: Tue, 6 Aug 2013 16:11:56 +0300 Message-ID: <20130806131156.GR2924@reaktio.net> References: <20130723105441.GE31939@citrix.com> <20130723132842.GB2504@phenom.dumpdata.com> <20130723175902.GE20810@citrix.com> <51FF9E3002000078000E9338@nat28.tlf.novell.com> <51FF8608.7070905@citrix.com> <51FFAD5F02000078000E93F1@nat28.tlf.novell.com> <51FFCCD3.9090109@citrix.com> <5200D00202000078000E98A6@nat28.tlf.novell.com> <5200C77A.2020404@citrix.com> <20130806101735.GQ2924@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20130806101735.GQ2924@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: keir@xen.org, Ian.Campbell@citrix.com, xen-devel@lists.xen.org, Jan Beulich , Joby Poriyath , malcolm.crossley@citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, Aug 06, 2013 at 01:17:35PM +0300, Pasi K=E4rkk=E4inen wrote: > On Tue, Aug 06, 2013 at 10:52:58AM +0100, Andrew Cooper wrote: > > On 06/08/13 09:29, Jan Beulich wrote: > > >>>> On 05.08.13 at 18:03, Andrew Cooper wr= ote: > > >> On 05/08/13 12:49, Jan Beulich wrote: > > >>> But a proper solution would of course be preferred. That may involve > > >>> notifying Xen of the reset from the PF driver. > > >> That is making the assumption that the PF driver is even aware that = the > > >> reset has occurred. If the PF driver can get at the reset informati= on, > > >> I still cant see Xen specific hooks being accepted upstream. > > > You sort of contradict your earlier statement here that "the VF > > > requests the PF to reset itself" (where you probably meant "it", > > > as the VF is hardly allowed to cause a reset of the PF): Such an > > > operation should imo be visible to the PF driver. > > > > > > And then, even if the reset is being done, shouldn't the interrupt > > > setup occur _after_ the reset? Which would make Xen clear the > > > flag... > > = > > The observed behaviour is this: On startup, the VF driver issues this > > backchannel reset of itself (the VF) which, amongst other things, sets > > the mask bit. It leaves the MSI/MSI-X addr and data fields alone, but > > on further consideration, relying on this behaviour might not be a good > > idea. The VF is then expected to re-enable the interrupt at its > > convenience. > > = > > There are no obvious hooks in the PF driver to receive notification of > > these backchannel resets. > > = > = > Doesn't the PF driver log some entries to dom0 kernel dmesg when the VF i= n domU resets itself? = > = At least I've seen such messages from the Intel igxbe PF driver.. or did I = misunderstand something? = -- Pasi