From: Shimon Zadok Subject: Re: Statistics at the host for network nic that was PCI-Passthrough Date: Mon, 14 Apr 2014 14:43:36 +0300 Message-ID: <0b6ccd40-a4d4-41d8-b101-eb0a4683230e@email.android.com> References: <95c9e48ad3db7c84f138f717198c149e@startpo.co.il> <1397468101.9862.228.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8775428363300738466==" Return-path: In-Reply-To: <1397468101.9862.228.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Xen-Developement List-Id: xen-devel@lists.xenproject.org --===============8775428363300738466== Content-Type: multipart/alternative; boundary="----NHQ2CRLHMNRE18D68USZYT3IQFG73F" Content-Transfer-Encoding: 8bit ------NHQ2CRLHMNRE18D68USZYT3IQFG73F Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 The guest is not in my control. Use case is: user uploads a Guest VM he made by himself... It could be the case that I give him an sr-iov (vf) by pci-passthrough or a pci device (not vf). I would still like to get a sense of the pci at the host level... On April 14, 2014 12:35:01 PM GMT+02:00, Ian Campbell wrote: >On Mon, 2014-04-14 at 12:32 +0300, Shimon Zadok wrote: >> >> -------- Original Message -------- >> Subject: Re: [Xen-devel] Statistics at the host for network nic that >> was PCI-Passthrough >> Date: 14-04-2014 12:30 >> From: Shimon Zadok >> To: Ian Campbell >> >> Is it possible to write an extension to pciback to load a module >> specific to that h/w? >> It could be a new driver for that hardware that operates by itself >for >> reading these statistics from the nic... > >Then you would have uncoordinated accesses to the hardware from two >domains. That might work for some hardware I suppose but it certainly >isn't a good idea in general. > >You'd be better off building something in the domu to export the stats >e.g. via xenstore. It could be entirely userspace I expect. > >Ian. > > > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xen.org >http://lists.xen.org/xen-devel -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------NHQ2CRLHMNRE18D68USZYT3IQFG73F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit The guest is not in my control. Use case is: user uploads a Guest VM he made by himself...
It could be the case that I give him an sr-iov (vf) by pci-passthrough or a pci device (not vf). I would still like to get a sense of the pci at the host level...

On April 14, 2014 12:35:01 PM GMT+02:00, Ian Campbell <Ian.Campbell@citrix.com> wrote:
On Mon, 2014-04-14 at 12:32 +0300, Shimon Zadok wrote:

-------- Original Message --------
Subject: Re: [Xen-devel] Statistics at the host for network nic that
was PCI-Passthrough
Date: 14-04-2014 12:30
From: Shimon Zadok <shimonz@startpo.co.il>
To: Ian Campbell <Ian.Campbell@citrix.com>

Is it possible to write an extension to pciback to load a module
specific to that h/w?
It could be a new driver for that hardware that operates by itself for
reading these statistics from the nic...

Then you would have uncoordinated accesses to the hardware fr om two
domains. That might work for some hardware I suppose but it certainly
isn't a good idea in general.

You'd be better off building something in the domu to export ! the stats
e.g. via xenstore. It could be entirely userspace I expect.

Ian.





Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

--
Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------NHQ2CRLHMNRE18D68USZYT3IQFG73F-- --===============8775428363300738466== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============8775428363300738466==--