Skip to content

Commit 3c142f9

Browse files
willdeaconMarc Zyngier
authored andcommitted
KVM: arm64: Fix hvhe/nvhe early alias parsing
Booting a kernel with "arm64_sw.hvhe=1 kvm-arm.mode=nvhe" on the command-line results in KVM initialising using hVHE, whereas one might expect the latter option to override the former. Fix this by adding "arm64_sw.hvhe=0" to the alias expansion for "kvm-arm.mode=nvhe". Signed-off-by: Will Deacon <[email protected]> Acked-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 838d992 commit 3c142f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/pi/idreg-override.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static const struct {
209209
char alias[FTR_ALIAS_NAME_LEN];
210210
char feature[FTR_ALIAS_OPTION_LEN];
211211
} aliases[] __initconst = {
212-
{ "kvm_arm.mode=nvhe", "id_aa64mmfr1.vh=0" },
212+
{ "kvm_arm.mode=nvhe", "arm64_sw.hvhe=0 id_aa64mmfr1.vh=0" },
213213
{ "kvm_arm.mode=protected", "id_aa64mmfr1.vh=0" },
214214
{ "arm64.nosve", "id_aa64pfr0.sve=0" },
215215
{ "arm64.nosme", "id_aa64pfr1.sme=0" },

0 commit comments

Comments
 (0)