libxl: modify libxl__logv() to only log valid domid values
authorPaul Durrant <pdurrant@amazon.com>
Fri, 21 Feb 2020 11:20:45 +0000 (11:20 +0000)
committerWei Liu <wl@xen.org>
Fri, 21 Feb 2020 12:05:41 +0000 (12:05 +0000)
commitc733b9e25c705d9680531055d7136570cf90dd2e
treeefb6dbe2472d7de218f125cfffb6fb79388df76a
parent740b64debacddc1e0906c42bf0161ed2c667ac96
libxl: modify libxl__logv() to only log valid domid values

Some code-paths use values other than INVALID_DOMID to indicate an invalid
domain id. Specifically, xl will pass a value of 0 when creating/restoring
a domain. Therefore modify libxl__logv() to use libxl_domid_valid_guest()
as a validity test.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libxl/libxl_internal.c