Re: [PATCH 1/3] x86: provide an init_mem_mapping hypervisor hook

From: Juergen Gross
Date: Wed Jul 26 2017 - 03:45:36 EST


On 25/07/17 16:09, Boris Ostrovsky wrote:
> On 07/25/2017 05:50 AM, Juergen Gross wrote:
>> Provide a hook in hypervisor_x86 called after setting up initial
>> memory mapping.
>>
>> This is needed e.g. by Xen HVM guests to map the hypervisor shared
>> info page.
>
> This is not necessarily a problem specific to guests so I wonder whether
> the hook should be part of x86_platform_ops or some other x86 structure.

I'm fine with any solution. I've chosen the hypervisor struct as right
now there seems to be a need for HVM Xen guests only.


Juergen