[Xen-devel] [PATCH v1 0/1] libxl/gentypes: add range init to array elements in json parsing

Oleksandr Grytsov posted 1 patch 4 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20191028182216.3882-1-al1img@gmail.com
tools/libxl/gentypes.py | 2 ++
1 file changed, 2 insertions(+)
[Xen-devel] [PATCH v1 0/1] libxl/gentypes: add range init to array elements in json parsing
Posted by Oleksandr Grytsov 4 years, 5 months ago
From: Oleksandr Grytsov <oleksandr_grytsov@epam.com>

There are two old threads in which this issues was addresses ([1], [2]) but
the root cause wasn't defined. The real root cause is that when libxl creates
json file it doesn't put entries for fields with default value (which is
correct). Then during parsing json back to data, array elements are initialized
by zero in all cases. But they should be initialized to default value (if it is
not equals to zero).

[1] https://marc.info/?l=xen-devel&m=151378727210130&w=2
[2] https://marc.info/?l=xen-devel&m=157071551925734&w=2

Oleksandr Grytsov (1):
  libxl/gentypes: add range init to array elements in json parsing

 tools/libxl/gentypes.py | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.17.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel