aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/include
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2024-02-02 10:00:31 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2024-02-22 10:08:04 +0000
commit9a687d1fe3af460cdc39c3ed08d1e33cc99b8141 (patch)
tree6cc92b5f11baf025cd0898590ba7c490386b9892 /sys/x86/include
parent848e2719af508516452b447047ddf6642ce42d0f (diff)
downloadsrc-9a687d1fe3af460cdc39c3ed08d1e33cc99b8141.tar.gz
src-9a687d1fe3af460cdc39c3ed08d1e33cc99b8141.zip
x86/xen: introduce a Xen early init function
Start by moving the hyeprcall setup to such function. The aim is to have a function that does all the required Xen early initialization for both HVM and PVH, instead of having it scattered across different paths. Sponsored by: Cloud Software Group Reviewed by: markj Differential revision: https://reviews.freebsd.org/D43932
Diffstat (limited to 'sys/x86/include')
-rw-r--r--sys/x86/include/xen/xen-os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/x86/include/xen/xen-os.h b/sys/x86/include/xen/xen-os.h
index 12942375be43..ec0d4b1ab9f1 100644
--- a/sys/x86/include/xen/xen-os.h
+++ b/sys/x86/include/xen/xen-os.h
@@ -96,6 +96,9 @@ xen_pv_nics_disabled(void)
bool xen_has_iommu_maps(void);
+/* (Very) early initialization. */
+void xen_early_init(void);
+
#endif /* !__ASSEMBLY__ */
#endif /* _MACHINE_X86_XEN_XEN_OS_H_ */