Re: [PATCH v2 06/18] arm64: kvm: use -fno-jump-tables with clang

From: Will Deacon
Date: Thu Nov 16 2017 - 06:46:20 EST


On Wed, Nov 15, 2017 at 01:34:16PM -0800, Sami Tolvanen wrote:
> Use -fno-jump-tables to make sure clang doesn't generate branches
> to EL1 virtual addresses.

Can you elaborate a bit more on exactly what you saw failing here, please?
Whilst it's obviously broken to jump to EL1 from EL2 w/o VHE, the commit
message is a bit cryptic.

Will