xen/x86: adjust data placement
authorJan Beulich <jbeulich@suse.com>
Thu, 30 Sep 2021 12:21:13 +0000 (14:21 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 5 Oct 2021 06:36:19 +0000 (08:36 +0200)
commit9c11112c0ec7ec322cd495320c3ab9fa8bdc1bbc
treeb34a1ab56c9f30c99a8d5feee8d7f8d178d30d59
parent59f7e5374175ce5d776efeb12a1e61cd6b1f82fb
xen/x86: adjust data placement

Both xen_pvh and xen_start_flags get written just once early during
init. Using the respective annotation then allows the open-coded placing
in .data to go away.

Additionally the former, like the latter, wants exporting, or else
xen_pvh_domain() can't be used from modules.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/8155ed26-5a1d-c06f-42d8-596d26e75849@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten.c
arch/x86/xen/enlighten_pvh.c