On 16.12.2022 00:57, Demi Marie Obenour wrote:
> --- a/xen/arch/x86/mm.c
> +++ b/xen/arch/x86/mm.c
> @@ -6357,6 +6357,15 @@ unsigned long get_upper_mfn_bound(void)
> return min(max_mfn, 1UL << (paddr_bits - PAGE_SHIFT)) - 1;
> }
>
> +static void __init __maybe_unused build_assertions(void)
> +{
> + /*
> + * If this trips, live migration of PV guests to and from this Xen is
> + * broken.
> + */
As is anyone using in a hard-coded fashion what the public interface (xen.h)
says. This wants adding here imo. Then
Reviewed-by: Jan Beulich <[email protected]>
Jan
> + BUILD_BUG_ON(XEN_MSR_PAT != 0x050100070406ULL);
> +}
> +
> /*
> * Local variables:
> * mode: C