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@xxxxxxxxxx> > Tested-by: Vincent Donnefort <vdonnefort@xxxxxxxxxx> > Signed-off-by: Will Deacon <will@xxxxxxxxxx> Reviewed-by: Oliver Upton <oliver.upton@xxxxxxxxx> -- Thanks, Oliver