Skip to content

Commit b3f263a

Browse files
Du-Chaoavpatel
authored andcommitted
RISC-V: KVM: Optimize comments in kvm_riscv_vcpu_isa_disable_allowed
The comments for EXT_SVADE are a bit confusing. Clarify it. Signed-off-by: Chao Du <duchao@eswincomputing.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Link: https://lore.kernel.org/r/20250221025929.31678-1-duchao@eswincomputing.com Signed-off-by: Anup Patel <anup@brainfault.org>
1 parent 2d117e6 commit b3f263a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kvm/vcpu_onereg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ static bool kvm_riscv_vcpu_isa_disable_allowed(unsigned long ext)
203203
case KVM_RISCV_ISA_EXT_SVADE:
204204
/*
205205
* The henvcfg.ADUE is read-only zero if menvcfg.ADUE is zero.
206-
* Svade is not allowed to disable when the platform use Svade.
206+
* Svade can't be disabled unless we support Svadu.
207207
*/
208208
return arch_has_hw_pte_young();
209209
default:

0 commit comments

Comments
 (0)