libxl/arm: fix guest type conversion
authorWei Liu <wei.liu2@citrix.com>
Fri, 2 Nov 2018 12:34:12 +0000 (12:34 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 2 Nov 2018 14:22:20 +0000 (14:22 +0000)
commit2cf113891a38cc05434bc9876ffc107a990887be
tree396108cd181bc00339be1c51ebad23b56333e408
parent6cb27e417e57c2f4d689fa19971f20f75e9c0708
libxl/arm: fix guest type conversion

Commit 359970fd8b ("tools/libxl: Switch Arm guest type to PVH") missed
changing the type field in c_info. This issue didn't surface until
ef72c93df9 which made creating PV guest on Arm unusable.

Create libxl__arch_domain_create_info_setdefault and switch the type
there.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_arch.h
tools/libxl/libxl_arm.c
tools/libxl/libxl_create.c
tools/libxl/libxl_x86.c