Re: [PATCH v1 23/24] kvm: arm64: Trap host SMCs in protected mode.

2020-11-10 Thread David Brazdil
> > +++ b/arch/arm64/kvm/hyp/nvhe/hyp-init.S > > @@ -88,6 +88,12 @@ SYM_CODE_END(__kvm_hyp_init) > > * x0: struct kvm_nvhe_init_params PA > > */ > > SYM_CODE_START(___kvm_hyp_init) > > +alternative_cb kvm_patch_hcr_flags > > + mov_q x1, HCR_HOST_NVHE_FLAGS > > You really want to be

Re: [PATCH v1 23/24] kvm: arm64: Trap host SMCs in protected mode.

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: While protected nVHE KVM is installed, start trapping all host SMCs. By default, these are simply forwarded to EL3, but PSCI SMCs are validated first. Create new constant HCR_HOST_NVHE_PROTECTED_FLAGS with the new set of HCR flags to use while the

Re: [PATCH v1 23/24] kvm: arm64: Trap host SMCs in protected mode.

2020-11-09 Thread kernel test robot
Hi David, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dennis-percpu/for-next] [also build test WARNING on linus/master v5.10-rc3 next-20201109] [cannot apply to kvmarm/next arm64/for-next/core soc/for-next arm/for-next xlnx/master] [If your patch is

[PATCH v1 23/24] kvm: arm64: Trap host SMCs in protected mode.

2020-11-09 Thread David Brazdil
While protected nVHE KVM is installed, start trapping all host SMCs. By default, these are simply forwarded to EL3, but PSCI SMCs are validated first. Create new constant HCR_HOST_NVHE_PROTECTED_FLAGS with the new set of HCR flags to use while the nVHE vector is installed when the kernel was