]> xenbits.xensource.com Git - xen.git/commit
x86: properly gate clearing of PKU feature
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Aug 2019 13:10:07 +0000 (15:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Aug 2019 13:10:07 +0000 (15:10 +0200)
commit41c7700a00011ad08be3c9d71126b67e08e58ac3
treee2d460ca71857c5ac02e7c7c826a64ed495e12e3
parentee91a49a440bcd1c74eecfc2f5c98d44ec8379c4
x86: properly gate clearing of PKU feature

setup_clear_cpu_cap() is __init and hence may not be called post-boot.
Note that opt_pku nevertheless is not getting __initdata added - see
e.g. commit 43fa95ae6a ("mm: make opt_bootscrub non-init").

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/common.c