tools/init-xenstore-domain: support xenstore pvh stubdom
authorJuergen Gross <jgross@suse.com>
Fri, 23 Oct 2020 13:53:10 +0000 (15:53 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Oct 2020 13:56:54 +0000 (15:56 +0200)
commitf89955449c5a47ff688e91873bbce4c3670ed9fe
treef82ac5490714605a26a007c46d398394317d3439
parent56c1aca6a2bc013f45e7af2fa88605a693402770
tools/init-xenstore-domain: support xenstore pvh stubdom

Instead of creating the xenstore-stubdom domain first and parsing the
kernel later do it the other way round. This enables to probe for the
domain type supported by the xenstore-stubdom and to support both, pv
and pvh type stubdoms.

Try to parse the stubdom image first for PV support, if this fails use
HVM. Then create the domain with the appropriate type selected.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/helpers/init-xenstore-domain.c