x86: properly gate clearing of PKU feature
authorJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2019 12:40:08 +0000 (14:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2019 12:40:08 +0000 (14:40 +0200)
commitff5ddf0e425df6cd09c91248297d10bc44c1cc17
tree3fd81fa795c8dcd4bb5953c4c6fae3f3a9504d82
parent802f9940fe9ba80253a3e8b652ae9f6f21703993
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>
master commit: 41c7700a00011ad08be3c9d71126b67e08e58ac3
master date: 2019-08-29 15:10:07 +0200
xen/arch/x86/cpu/common.c