tools/libx[cl]: Plumb bool restore down into xc_cpuid_apply_policy()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 12 Jun 2020 13:07:10 +0000 (14:07 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 17 Jun 2020 12:54:12 +0000 (13:54 +0100)
commit057012d2899e4e71e274f77fcab136b0cad23099
tree3977b842e53492903bd002af2f496635ee73ee5e
parentf79cd47cd7a2ea321a0fe7d46586bdbea4845cdd
tools/libx[cl]: Plumb bool restore down into xc_cpuid_apply_policy()

In order to safely disable some features by default, without breaking
migration from 4.13 or older, the CPUID logic needs to distinguish the two
cases.

Plumb a restore boolean down from the two callers of libxl__cpuid_legacy() all
the way down into xc_cpuid_apply_policy().

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
tools/libxc/include/xenctrl.h
tools/libxc/xc_cpuid_x86.c
tools/libxl/libxl_cpuid.c
tools/libxl/libxl_create.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_nocpuid.c