Re: [PATCH 04/18] arm64: kernel: add helper for booted at EL2 and not VHE

2021-06-02 Thread Marc Zyngier
On Wed, 02 Jun 2021 02:33:52 +0100, Pavel Tatashin wrote: > > On Tue, Jun 1, 2021 at 8:38 AM Marc Zyngier wrote: > > > > On Thu, 27 May 2021 16:05:12 +0100, > > Pavel Tatashin wrote: > > > > > > Replace places that contain logic like this: > > > is_hyp_mode_available() && !is_kernel_in_hy

Re: [PATCH 04/18] arm64: kernel: add helper for booted at EL2 and not VHE

2021-06-01 Thread Pavel Tatashin
On Tue, Jun 1, 2021 at 8:38 AM Marc Zyngier wrote: > > On Thu, 27 May 2021 16:05:12 +0100, > Pavel Tatashin wrote: > > > > Replace places that contain logic like this: > > is_hyp_mode_available() && !is_kernel_in_hyp_mode() > > > > With a dedicated boolean function is_hyp_callable(). This

Re: [PATCH 04/18] arm64: kernel: add helper for booted at EL2 and not VHE

2021-06-01 Thread Marc Zyngier
On Thu, 27 May 2021 16:05:12 +0100, Pavel Tatashin wrote: > > Replace places that contain logic like this: > is_hyp_mode_available() && !is_kernel_in_hyp_mode() > > With a dedicated boolean function is_hyp_callable(). This will be needed > later in kexec in order to sooner switch back to

[PATCH 04/18] arm64: kernel: add helper for booted at EL2 and not VHE

2021-05-27 Thread Pavel Tatashin
Replace places that contain logic like this: is_hyp_mode_available() && !is_kernel_in_hyp_mode() With a dedicated boolean function is_hyp_callable(). This will be needed later in kexec in order to sooner switch back to EL2. Suggested-by: James Morse [Fixed merging issues] Signed-off-b