We are going to change these functions to expect, and be passed, a
/libxl path. So it is wrong that they are called _from_xs_be.
Neither function reads anything which isn't found in both places, so
we can and will change the call sites later.
The only remaining function in libxl called *_from_xs_be relates to
PCI devices, for which the backend domain is hardcoded to 0 throughout
the libxl_pci.c.
No functional change.
This is part of XSA-178.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
return;
}
-static void libxl__device_nic_from_xs_be(libxl__gc *gc,
+static void libxl__device_nic_from_xenstore(libxl__gc *gc,
const char *be_path,
libxl_device_nic *nic)
{
if (!path)
goto out;
- libxl__device_nic_from_xs_be(gc, path, nic);
+ libxl__device_nic_from_xenstore(gc, path, nic);
rc = 0;
out:
for (; pnic < pnic_end; pnic++, dir++) {
const char *p;
p = libxl__sprintf(gc, "%s/%s", be_path, *dir);
- libxl__device_nic_from_xs_be(gc, p, pnic);
+ libxl__device_nic_from_xenstore(gc, p, pnic);
pnic->backend_domid = 0;
}
}