xen/domain: Pass the full domctl_createdomain struct to create_domain()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Mar 2018 12:39:36 +0000 (12:39 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Mar 2018 11:22:40 +0000 (11:22 +0000)
commit822f21458ff9cd0ee6b910e7f115bb615b8796ec
tree31a1bc94c4d0e95f5b485f8ed7e88ee7807681a0
parent40ac76a6789a18629b6e66373f766af62466317d
xen/domain: Pass the full domctl_createdomain struct to create_domain()

In future patches, the structure will be extended with further information,
and this is far cleaner than adding extra parameters.

One minor tweak is that the setting of guest_type needs to be deferred until
config is known-good to dereference, but this doesn't result in any changed
behaviour as system domains never used to pass XEN_DOMCTL_CDF_hvm_guest.

Also for completeness, move the setting of d->handle into the tail of
domain_create() where it more logically should live.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain.c
xen/arch/arm/mm.c
xen/arch/arm/setup.c
xen/arch/x86/domain.c
xen/arch/x86/mm.c
xen/arch/x86/setup.c
xen/common/domain.c
xen/common/domctl.c
xen/common/schedule.c
xen/include/xen/domain.h
xen/include/xen/sched.h