Statistics at the host for network nic that was PCI-Passthrough
-------- 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 <[email protected]>
To: Ian Campbell <[email protected]>
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...
Quoted 17 lines · Ian Campbell
Quoted 4 lines · Shimon Zadok
For the case of a network nic that was PCI-Passthrough to a VM.
Does the pciback or some API can enable the read of ethtool-like statistics?
These stats are h/w specific so generally only the driver within the guest would know how to extract them.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Signature · 2 lines
Shimon Zadok Startpo
Quoted 8 lines · Shimon Zadok
-------- 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 <[email protected]>
To: Ian Campbell <[email protected]>
Quoted 4 lines
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.
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...
Quoted 30 lines · Ian Campbell
Quoted 11 lines · Shimon Zadok
-------- 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 <[email protected]>
To: Ian Campbell <[email protected]>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 itselffor
Quoted 1 line
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
[email protected]
http://lists.xen.org/xen-devel
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Please don't top post.
Quoted 5 lines · Shimon Zadok
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.
Quoted 8 lines · Ian Campbell
Please don't top post.
Quoted 5 lines · Shimon Zadok
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...
Quoted 4 lines
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