]> xenbits.xensource.com Git - xen.git/commit
xen/x86: Improve disabling of features which have dependencies
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Nov 2015 11:43:01 +0000 (11:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:07 +0000 (21:54 +0100)
commit33d0d39b3b1b78b25a4590d6c723cdf4d24acd91
treed92ec9b5a205242140b712b00c3e37869e8834f3
parente61287a9141c09531e15c95bdc1a50214753a572
xen/x86: Improve disabling of features which have dependencies

APIC and XSAVE have dependent features, which also need disabling if Xen
chooses to disable a feature.

Use setup_clear_cpu_cap() rather than clear_bit(), as it takes care of
dependent features as well.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/apic.c
xen/arch/x86/cpu/common.c
xen/arch/x86/xstate.c