
KR> - KR> - s = get_vsm_cap(_BROKER, ref, &inst); KR> + char hostname[256] = {0}; KR> + KR> + if (gethostname(hostname, sizeof(hostname) - 1) != 0) KR> + strcpy(hostname, "unknown"); KR> + KR> + s = get_vsm_cap(_BROKER, ref, hostname, &inst); This needs to be a call into the HostSystem provider. Right now, the name of the hostname *is* the hostname, but if we rely on other existing instrumentation for the host system, we might break here. The purpose of Virt_HostSystem was to be a placeholder so we wouldn't need to change several other providers if we changed where we get the host system information from. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com