[PATCH v5 05/25] KVM: arm64: Unify identifiers used to distinguish host and hypervisor

Oliver Upton oliver.upton at linux.dev
Thu Oct 27 17:32:23 PDT 2022


On Thu, Oct 20, 2022 at 02:38:07PM +0100, Will Deacon wrote:
> The 'pkvm_component_id' enum type provides constants to refer to the
> host and the hypervisor, yet this information is duplicated by the
> 'pkvm_hyp_id' constant.
> 
> Remove the definition of 'pkvm_hyp_id' and move the 'pkvm_component_id'
> type definition to 'mem_protect.h' so that it can be used outside of
> the memory protection code, for example when initialising the owner for
> hypervisor-owned pages.
> 
> Reviewed-by: Philippe Mathieu-Daudé <philmd at linaro.org>
> Tested-by: Vincent Donnefort <vdonnefort at google.com>
> Signed-off-by: Will Deacon <will at kernel.org>

Reviewed-by: Oliver Upton <oliver.upton at linux.dev>

--
Thanks,
Oliver



More information about the linux-arm-kernel mailing list