Skip to content

libxl/gentypes: add range init to array elements in json parsing

Oleksandr Grytsov xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1libxl/gentypes: add range init to array elements in json parsingtools/libxl/gentypes.py+2 -015 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJuergen GrossAnthony PERARD
1/1Release-acked-by A-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

From: Oleksandr Grytsov <[email protected]>

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(+)
Signature · 7 lines
2.17.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel