RISC-V: KVM: Make ISA ext mappings explicit
authorAndrew Jones <ajones@ventanamicro.com>
Sun, 2 Oct 2022 04:48:54 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:48:54 +0000 (10:18 +0530)
commit1b5cbb8733f924c99bc48a8e4c2a95449f0f514d
tree70f6016867035f1ee9224f75e7a3c1d164230165
parent0bba48978f6b63aee0fa4ee3a8097ec94e75f7f2
RISC-V: KVM: Make ISA ext mappings explicit

While adding new extensions at the bottom of the array isn't hard to
do, it's a pain to review in order to ensure we're not missing any.
Also, resolving merge conflicts for multiple new ISA extensions can be
error-prone. To make adding new mappings foolproof, explicitly assign
the array elements. And, now that the order doesn't matter, we can
alphabetize the extensions, so we do that too.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c