}
#else
/* XXX Solaris will need an impl later if they port QEMU driver */
- nodeReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ nodeReportError(VIR_ERR_NO_SUPPORT, "%s",
_("node info not implemented on this platform"));
return -1;
#endif
return ret;
}
#else
- nodeReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ nodeReportError(VIR_ERR_NO_SUPPORT, "%s",
_("node CPU stats not implemented on this platform"));
return -1;
#endif
# if HAVE_NUMACTL
if (numa_available() < 0) {
# endif
- nodeReportError(VIR_ERR_OPERATION_INVALID,
+ nodeReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("NUMA not supported on this host"));
return -1;
# if HAVE_NUMACTL
return ret;
}
#else
- nodeReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ nodeReportError(VIR_ERR_NO_SUPPORT, "%s",
_("node memory stats not implemented on this platform"));
return -1;
#endif
int maxCell;
if (numa_available() < 0) {
- nodeReportError(VIR_ERR_OPERATION_INVALID,
+ nodeReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("NUMA not supported on this host"));
goto cleanup;
}
int n;
if (numa_available() < 0) {
- nodeReportError(VIR_ERR_OPERATION_INVALID,
+ nodeReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("NUMA not supported on this host"));
goto cleanup;
}
int startCell ATTRIBUTE_UNUSED,
int maxCells ATTRIBUTE_UNUSED)
{
- nodeReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ nodeReportError(VIR_ERR_NO_SUPPORT, "%s",
_("NUMA memory information not available on this platform"));
return -1;
}
unsigned long long nodeGetFreeMemory(virConnectPtr conn ATTRIBUTE_UNUSED)
{
- nodeReportError(VIR_ERR_OPERATION_INVALID, "%s",
+ nodeReportError(VIR_ERR_NO_SUPPORT, "%s",
_("NUMA memory information not available on this platform"));
return 0;
}