]> xenbits.xensource.com Git - xen.git/commit
tools/xl: fix channel configuration setting
authorJuergen Gross <jgross@suse.com>
Wed, 5 Mar 2025 15:37:37 +0000 (16:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Mar 2025 15:37:37 +0000 (16:37 +0100)
commite1ccced4afe465d6541c5825a0f8d1b8f5fa4253
treebb8f1f926eaeffc63a9b23d784ad411b4d67f3e4
parentc2e3d122de58476961dec25869f51026aed34168
tools/xl: fix channel configuration setting

Channels work differently than other device types: their devid should
be -1 initially in order to distinguish them from the primary console
which has the devid of 0.

So when parsing the channel configuration, use
ARRAY_EXTEND_INIT_NODEVID() in order to avoid overwriting the devid
set by libxl_device_channel_init().

Fixes: 3a6679634766 ("libxl: set channel devid when not provided by application")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
tools/xl/xl_parse.c