diff options
author | Andrew Jones <ajones@ventanamicro.com> | 2023-05-30 20:50:23 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-06-06 06:42:10 +0300 |
commit | 9f9e3ebe111c7aabf18a4085648dcc58c568c1d6 (patch) | |
tree | 75ed5986a2d48345103ffbb9843b06ace6408196 /arch/riscv/include/asm/kvm_vcpu_sbi.h | |
parent | ae328dadf9852bc420880d48e341f528b7e0ce78 (diff) | |
download | linux-9f9e3ebe111c7aabf18a4085648dcc58c568c1d6.tar.xz |
RISC-V: KVM: Convert extension_disabled[] to ext_status[]
Change the boolean extension_disabled[] array to an array of enums,
ext_status[]. For now, the enum only has two states, which correspond
to the previous boolean states, so this patch has no intended
functional change. The next patch will add another state, expanding
the purpose of ext_status[].
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/include/asm/kvm_vcpu_sbi.h')
-rw-r--r-- | arch/riscv/include/asm/kvm_vcpu_sbi.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/kvm_vcpu_sbi.h b/arch/riscv/include/asm/kvm_vcpu_sbi.h index 4278125a38a5..ad1588d6064b 100644 --- a/arch/riscv/include/asm/kvm_vcpu_sbi.h +++ b/arch/riscv/include/asm/kvm_vcpu_sbi.h @@ -14,9 +14,14 @@ #define KVM_SBI_VERSION_MAJOR 1 #define KVM_SBI_VERSION_MINOR 0 +enum kvm_riscv_sbi_ext_status { + KVM_RISCV_SBI_EXT_AVAILABLE, + KVM_RISCV_SBI_EXT_UNAVAILABLE, +}; + struct kvm_vcpu_sbi_context { int return_handled; - bool extension_disabled[KVM_RISCV_SBI_EXT_MAX]; + enum kvm_riscv_sbi_ext_status ext_status[KVM_RISCV_SBI_EXT_MAX]; }; struct kvm_vcpu_sbi_return { |