HomeFreeBSD

xen: remove direct usage of HYPERVISOR_start_info

Description

xen: remove direct usage of HYPERVISOR_start_info

HYPERVISOR_start_info is only available to PV and PVHv1 guests, HVM
and PVHv2 guests get this data from HVM parameters that are fetched
using a hypercall.

Instead provide a set of helper functions that should be used to fetch
this data. The helper functions have different implementations
depending on whether FreeBSD is running as PVHv1 or HVM/PVHv2 guest
type.

This helps to cleanup generic Xen code by removing quite a lot of
xen_pv_domain and xen_hvm_domain macro usages.

Sponsored by: Citrix Systems R&D

Details

Provenance
roygerAuthored on Jul 19 2018, 7:54 AM
Parents
rGf2577f25c192: xen: add PVHv2 entry point
Branches
Unknown
Tags
Unknown