The claimed reason for setting errno to -1 is wrong. On x86
xc_domain_pod_target() will set errno to a sane value in the error
case.
Fixes: ff1745d5882b ("tools: libxl: do not set the PoD target on ARM")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit:
a0fb7e0e73483ed042d5ca34861a891a51ad337b
master date: 2022-04-22 20:39:34 +0100
uint64_t *pod_cache_pages,
uint64_t *pod_entries)
{
- /* On x86 (above) xc_domain_pod_target will incorrectly return -1
- * with errno==-1 on error. Do the same for least surprise. */
- errno = -1;
+ errno = EOPNOTSUPP;
return -1;
}
#endif