tools/xl: use sparse init for dom_info, remove duplicate vars
authorElliott Mitchell <ehem+xen@m5p.com>
Tue, 19 Jul 2022 09:18:55 +0000 (11:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Jul 2022 09:18:55 +0000 (11:18 +0200)
commite500b6b8d07f87593a9d0e3a391456ef4ac5ee34
tree3d48c9d0502c850987aac3aa5bd2c3a0684c8059
parent0a8546395451f01032058a2a97857ed99a12b004
tools/xl: use sparse init for dom_info, remove duplicate vars

Rather than having shadow variables for every element of dom_info, it is
better to properly initialize dom_info at the start.  This also removes
the misleading memset() in the middle of main_create().

Remove the dryrun element of domain_create as that has been displaced
by the global "dryrun_only" variable.

Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/xl/xl.h
tools/xl/xl_vmcontrol.c