libxg: don't use max policy in xc_cpuid_xend_policy()
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:14:58 +0000 (09:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:14:58 +0000 (09:14 +0200)
commitd0d1003b97279f88232d6ec7a406d3cf58c71327
tree1463093e90dcd7fa5e643d7289c51a82bd7fe131
parent186b09ea01c925c3997f1a05f585b35151d32d1a
libxg: don't use max policy in xc_cpuid_xend_policy()

using max undermines the separation between default and max. For
example, turning off AVX512F on an MPX-capable system silently turns on
MPX, despite this not being part of the default policy anymore. Since
the information is used only for determining what to convert 'x' to (but
not to e.g. validate '1' settings), the effect of this change is
identical for guests with (suitable) "cpuid=" settings to that of the
changes separating default from max and then converting (e.g.) MPX from
being part of default to only being part of max for guests without
(affected) "cpuid=" settings.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/guest/xg_cpuid_x86.c