xl: allow domid to be preserved on save/restore or migrate
authorPaul Durrant <pdurrant@amazon.com>
Wed, 8 Jan 2020 15:40:55 +0000 (15:40 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 24 Feb 2020 17:17:35 +0000 (17:17 +0000)
commite465fecbfdb865c75f762055c0396bc617005748
treeb5104bb0b98f7bffd139a3fc9036465165da8629
parent64fe38f246a7bf305e4e47da26c9dfc31bbff30b
xl: allow domid to be preserved on save/restore or migrate

This patch adds a '-D' command line option to save and migrate to allow
the domain id to be incorporated into the saved domain configuration and
hence be preserved.

NOTE: Logically it may seem as though preservation of domid should be
      dealt with by libxl, but the libxl migration stream has no record
      in which to transfer domid and remote domain creation occurs before
      the migration stream is parsed. Hence this patch modifies xl rather
      then libxl.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/man/xl.1.pod.in
tools/xl/xl.h
tools/xl/xl_cmdtable.c
tools/xl/xl_migrate.c
tools/xl/xl_saverestore.c
tools/xl/xl_vmcontrol.c