|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.3] libxl: Rename libxl__device_nic_from_xs_be to _from_xenstore
commit 06fa494bb50d4b16c63295a10644141b6ce7c3a4
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
AuthorDate: Wed May 4 16:18:36 2016 +0100
Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Mon Jun 6 17:21:47 2016 +0100
libxl: Rename libxl__device_nic_from_xs_be to _from_xenstore
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@xxxxxxxxxxxxx>
Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
tools/libxl/libxl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
index 38f0ef5..5e184c5 100644
--- a/tools/libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -2990,7 +2990,7 @@ out:
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)
{
@@ -3049,7 +3049,7 @@ int libxl_devid_to_device_nic(libxl_ctx *ctx, uint32_t
domid,
if (!path)
goto out;
- libxl__device_nic_from_xs_be(gc, path, nic);
+ libxl__device_nic_from_xenstore(gc, path, nic);
rc = 0;
out:
@@ -3083,7 +3083,7 @@ static int libxl__append_nic_list_of_type(libxl__gc *gc,
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;
}
}
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.3
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |