python: Add XC binding for Xen build ID
authorPawel Wieczorkiewicz <wipawel@amazon.de>
Tue, 20 Aug 2019 12:51:08 +0000 (12:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Aug 2019 13:24:05 +0000 (14:24 +0100)
commitbbf230b2a1ae0e56f9d70fb2ca71ed08e97d49b4
tree63181b1f06211ce49e60e3ea657f100446338484
parent248faa637d2f873b73d2ba38836063df4f36d9b1
python: Add XC binding for Xen build ID

Extend the list of xc() object methods with additional one to display
Xen's buildid. The implementation follows the libxl implementation
(e.g. max buildid size assumption being XC_PAGE_SIZE minus
sizeof(buildid->len)).

Signed-off-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Martin Mazein <amazein@amazon.de>
Reviewed-by: Andra-Irina Paraschiv <andraprs@amazon.com>
Reviewed-by: Norbert Manthey <nmanthey@amazon.de>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
tools/python/xen/lowlevel/xc/xc.c