Re: [libvirt] libvirt and physical hardware devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/09/2009 05:46 AM, Daniel P. Berrange wrote:
-family
-cpuid_lvl
    

Don't have these tw
-cache
-vendor
-flags
    

Dont have these three (well a couple of flags, but certainly not all).
  
Are there any plans to add it? The information is tracked by ovirt, and it would be nice to not have to regex scrape the output from /proc/cpuinfo :)

The virInterface APis will have everything except link bandwidth. Not
sure where you get that info from, but we could add it
  
Sounds good - which release of libvirt will have all of that, and when?

The link bandwidth is as reported by ethtool - the exotic "SIOCETHTOOL" ioctl. A quick snippet:
struct ifreq ifr;
struct ethtool_cmd ecmd;
ecmd.cmd = ETHTOOL_GSET;
ifr.ifr_data = (caddr_t)&ecmd;
int ret = ioctl(sock, SIOCETHTOOL, &ifr);

if (ecmd.supported & SUPPORTED_10000baseT_Full) { ... } etc.

-Arjun
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]