Re: [Xen-devel] [PATCH 3/5] x86/xen: put setup.c, mmu.c and p2m.c under CONFIG_XEN_PV
From: Juergen Gross
Date: Wed Mar 01 2017 - 01:26:21 EST
On 24/02/17 17:14, Vitaly Kuznetsov wrote:
> These three files (mmu.c, p2m.c, setup.c) are mostly required to support
> PV guests, in fact p2m.c and setup.c have no code for PVHVM at all. mmu.c
> has some, split the file into mmu.c, mmu_pv.c and mmu_hvm.c.
>
> Some additional changes are required:
> - In the balloon driver we can't use xen_start_info, xen_released_pages
> and xen_extra_mem it is PV-only. Decorate it with #ifdef CONFIG_XEN_PV
>
> - Some PV-only functions are used by drivers and for PVHVM guests these
> functions have 'if (xen_feature(XENFEAT_auto_translated_physmap))' check
> in the beginning. Create required stubs for PVHVM-only builds.
>
> Signed-off-by: Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
And again: split the patch up, please.
Juergen