HomeFreeBSD

x86/xen: implement early init hook

Description

x86/xen: implement early init hook

Unify the HVM and PVH early setup, byt making both rely on the hypervisor
initialization hook part of identify_hypervisor().

The current initialization takes care of the hypercall page, the sahred info
page and does any fixup necessary to metadata video console information if
FreeBSD is booted as the initial domain (so the video console is handed from
Xen into FreeBSD).

Note this has the nice side effect of also allowing to use the Xen console on
HVM guests, which allows to get rid of the QEMU emulated uart and still get
a nice text console.

Sponsored by: Cloud Software Group
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D43764

Details

Provenance
roygerAuthored on Feb 2 2024, 10:56 AM
Reviewer
markj
Differential Revision
D43764: x86/xen: implement early init hook
Parents
rG4401b0685163: x86/cpu: introduce an optional hook for early hypervisor initialization
Branches
Unknown
Tags
Unknown