[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/3] tools/xl: Allow specifying JSON for domain configuration file format
- To: Elliott Mitchell <ehem+xen@xxxxxxx>
- From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Date: Fri, 20 May 2022 15:12:46 +0100
- Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 20 May 2022 14:13:22 +0000
- Ironport-data: A9a23:GrEaFav2lQoccW1FqbkKOCa7QefnVA1eMUV32f8akzHdYApBsoF/q tZmKT3TPv2CNjemftl0a9yz804OvJOBm9RmSVNsqXgyHytA+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZhSAgk/nOHNIQMcacUsxLbVYMpBwJ1FQywobVvqYy2YLjW17X4 YuryyHiEATNNwBcYzp8B52r8HuDjNyq0N/PlgVjDRzjlAa2e0g9VPrzF4noR5fLatA88tqBb /TC1NmEElbxpH/BPD8HfoHTKSXmSpaKVeSHZ+E/t6KK2nCurQRquko32WZ1he66RFxlkvgoo Oihu6BcRi8lMpWcx94MUiVlAmJEeoF99eKEEFag5Jn7I03uKxMAwt1rBUAye4YZ5vx2ESdF8 vlwxDIlN07ZwbjsmfTiF7cq1p9LwMrDZevzvllpyy3ZCvA3B4jOWazQ6fdT3Ssqh9AIFvHbD yYcQWU2PEyZPEESUrsRILUckN6u1ybBSG1BrlPF4po632381TUkhdABN/KKI4fXFK25hH2wu Wbu72n/RBYAO7S32TeDt36hmOLLtSf6Q54JUq218OZwh1+ezXBVDwcZPXO2ofS8yV6zXfpad lRS8S0rxZXe72TyEIO7BUfh5ifZ4FhMALK8DtHW9imBxpKEvDyIB1Q5X317L/AduZJ1dBI1g wrhc8zSOdB/jFGEYSvDq+zM9GvsZXd9wXwqPnFdE1ZcizX3iMRq10+UEI4+eEKgpoetcQwc1 Qxmu8TXa187qccQn5u28lnc695HjsiYF1Vljuk7s4/M0++YWGJGT9bxgbQjxawcRLt1t3HY1 JT+p+CQ7foVEbaGnzGXTeMGEdmBvqjYam2N0Q4xRsJ/rVxBHkJPmqgJv1lDyLpBaJ5YKVcFn meO0e+u2HOjFCTzNvImC25AI88r0bLhBbzYugP8N7JzjmxKXFbfpklGPBfIt0i0yRREufxva P+zLJf3ZV5HWPsP8dZDb7pEuVPd7ntlnj27qFGS50nP7Idyk1bOEudZYAXUP79lhE5GyS2Mm +ti2wKx4003eIXDjuP/q+b/8XhiwaAHOK3L
- Ironport-hdrordr: A9a23:1sbquaqp6qOC4Tgnt/6jPlsaV5oreYIsimQD101hICG8cqSj+f xGuM5rsSMc6QxhPU3I9ursBEDtex/hHNtOkO4s1NSZLWvbUQmTTL2KhLGKq1aLJ8S9zJ8/6U 4JSdkZNDSaNzlHZKjBjzWFLw==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Apr 19, 2022 at 06:23:41PM -0700, Elliott Mitchell wrote:
> JSON is currently used when saving domains to mass storage. Being able
> to use JSON as the normal input to `xl create` has potential to be
> valuable. Add the functionality.
>
> Move the memset() earlier so to allow use of the structure sooner.
>
> Signed-off-by: Elliott Mitchell <ehem+xen@xxxxxxx>
So, I gave this a try and creating a guest from a json config, and that
fails very early with "Unknown guest type".
Have you actually tried to create a guest from config file written in
json?
Also, this would need documentation about the new option, about the
format. The man page need to be edited.
An example of a config file written in json would be nice as well.
Thanks,
--
Anthony PERARD
|