On Mon, Oct 26, 2020 at 01:49:29PM +0000, Mark Rutland wrote: > Currently has_vhe() detects whether it is being compiled for VHE/NVHE > hyp code based on preprocessor definitions, and uses this knowledge to > avoid redundant runtime checks. > > There are other cases where we'd like to use this knowledge, so let's > factor the preprocessor checks out into separate helpers. > > There should be no functional change as a result of this patch. > > Signed-off-by: Mark Rutland <[email protected]> > Cc: David Brazdil <[email protected]> > Cc: Marc Zyngier <[email protected]> > Cc: Will Deacon <[email protected]> > --- > arch/arm64/include/asm/virt.h | 21 ++++++++++++++++----- > 1 file changed, 16 insertions(+), 5 deletions(-)
Acked-by: Will Deacon <[email protected]> Will _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
