From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: Statistics at the host for network nic that was PCI-Passthrough Date: Mon, 14 Apr 2014 12:52:40 +0100 Message-ID: <534BCC08.8070704@citrix.com> References: <95c9e48ad3db7c84f138f717198c149e@startpo.co.il> <1397468101.9862.228.camel@kazak.uk.xensource.com> <0b6ccd40-a4d4-41d8-b101-eb0a4683230e@email.android.com> <1397475882.9862.252.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1397475882.9862.252.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: Shimon Zadok , Xen-Developement List-Id: xen-devel@lists.xenproject.org On 14/04/14 12:44, Ian Campbell wrote: > Please don't top post. > > On Mon, 2014-04-14 at 14:43 +0300, Shimon Zadok wrote: >> 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... > I'm afraid that AFAIK this is not possible without guest (admin) > cooperation. > > Ian. For some SRIOV devices, there is vf accounting available from the pf, but this is hardware and driver dependent. For non SRIOV, all bets are off in this regard. ~Andrew