libxl, xl: change p9 to p9s
PATCH 1/1 libxl, xl: change p9 to p9s
To match our naming convention. Since we released p9 one release ago, we need to define a macro inside libxl.h to indicate the change.
---
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Oleksandr Grytsov <[email protected]>
Cc: Jim Fehlig <[email protected]>
Ian and I discussed IRL, the conclusion is that changing the field name should be OK.
--- tools/libxl/libxl.h | 5 +++++ tools/libxl/libxl_create.c | 2 +- tools/libxl/libxl_types.idl | 2 +- tools/xl/xl_parse.c | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-)
tools/libxl/libxl.h +5 -0
@@ -305,6 +305,11 @@*/ #define LIBXL_HAVE_BUILDINFO_HVM_ACPI_LAPTOP_SLATE 1 +/* +* LIBXL_HAVE_P9S indicates that the p9 field in IDL has been changed to p9s +*/ +#define LIBXL_HAVE_P9S 1 +/* * libxl ABI compatibility *
tools/libxl/libxl_create.c +1 -1
@@ -1327,7 +1327,7 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev, }for (i =0 ; i < d_config->num_p9s; i++) -libxl__device_p9_add (gc, domid, &d_config->p9[i]); +libxl__device_p9_add (gc, domid, &d_config->p9s[i]);switch (d_config->c_info.type) {case LIBXL_DOMAIN_TYPE_HVM :
tools/libxl/libxl_types.idl +1 -1
@@ -791,7 +791,7 @@ libxl_domain_config = Struct("domain_config", [ ("vfbs", Array(libxl_device_vfb, "num_vfbs")), ("vkbs", Array(libxl_device_vkb, "num_vkbs")), ("vtpms", Array(libxl_device_vtpm, "num_vtpms")), - ("p9", Array(libxl_device_p9, "num_p9s")), + ("p9s", Array(libxl_device_p9, "num_p9s")), # a channel manifests as a console with a name, # see docs/misc/channels.txt ("channels", Array(libxl_device_channel, "num_channels")),
tools/xl/xl_parse.c +2 -2
@@ -1401,9 +1401,9 @@ void parse_config_data(const char *config_source,char *p, *p2, *buf2; d_config->num_p9s =0 ; - d_config->p9 =NULL ; + d_config->p9s =NULL ;while ((buf =xlu_cfg_get_listitem (p9devs, d_config->num_p9s)) !=NULL ) { - p9 =ARRAY_EXTEND_INIT (d_config->p9, + p9 =ARRAY_EXTEND_INIT (d_config->p9s, d_config->num_p9s, libxl_device_p9_init);libxl_device_p9_init (p9);
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines · Wei Liu
To match our naming convention. Since we released p9 one release ago, we need to define a macro inside
libxl.hto indicate the change.Signed-off-by Wei Liu <[email protected]>
Quoted 8 lines
---
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Oleksandr Grytsov <[email protected]>
Cc: Jim Fehlig <[email protected]>Ian and I discussed IRL, the conclusion is that changing the field name should be OK.
If I hear no objection by Friday I will commit this patch.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Wei Liu
Quoted 10 lines · Wei Liu
To match our naming convention. Since we released p9 one release ago, we need to define a macro inside
libxl.hto indicate the change.Signed-off-by Wei Liu <[email protected]>---
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Oleksandr Grytsov <[email protected]>
Cc: Jim Fehlig <[email protected]>
Quoted 4 lines
Quoted 2 lines
Ian and I discussed IRL, the conclusion is that changing the field name should be OK.
If I hear no objection by Friday I will commit this patch.
Committed now.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel