tools/libxl: Re-position CPUID handling during domain construction
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Jan 2020 19:44:36 +0000 (19:44 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 16:33:03 +0000 (17:33 +0100)
commit454239acc59cd067867f56e42f2ca910ec98cc56
treec171c28c62607bb38186bef8c4856a880f43ef7c
parentc1a552ec7fcd95a2c5af0da105c58a2773944cd7
tools/libxl: Re-position CPUID handling during domain construction

CPUID handling needs to be earlier in construction.  Move it from its current
position in libxl__build_post() to libxl__build_pre() for fresh builds, and
libxl__srm_callout_callback_static_data_done() for the migration/resume case.

Later changes will make the migration/resume case conditional on whether CPUID
data was present in the migration stream, and the libxc layer took care of
restoring it.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_dom.c