mbox series

[v1,0/1] libxl/gentypes: add range init to array elements in json parsing

Message ID 20191028182216.3882-1-al1img@gmail.com (mailing list archive)
Headers show
Series libxl/gentypes: add range init to array elements in json parsing | expand

Message

Oleksandr Grytsov Oct. 28, 2019, 6:22 p.m. UTC
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(+)