<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=us-ascii" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 07/09/2009 05:46 AM, Daniel P. Berrange wrote:<br>
<blockquote cite="mid:20090709094649.GB8719@redhat.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">-family
-cpuid_lvl
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Don't have these tw</pre>
  <blockquote type="cite">
    <pre wrap="">-cache
-vendor
-flags
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Dont have these three (well a couple of flags, but certainly not all).
  </pre>
</blockquote>
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 :)<br>
<br>
<blockquote cite="mid:20090709094649.GB8719@redhat.com" type="cite">
  <pre wrap="">The virInterface APis will have everything except link bandwidth. Not
sure where you get that info from, but we could add it
  </pre>
</blockquote>
Sounds good - which release of libvirt will have all of that, and when?<br>
<br>
The link bandwidth is as reported by ethtool - the exotic "SIOCETHTOOL"
ioctl. A quick snippet:<br>
<pre>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.

</pre>
-Arjun<br>
</body>
</html>