From: Chao Du Date: Fri, 21 Feb 2025 02:59:29 +0000 (+0000) Subject: RISC-V: KVM: Optimize comments in kvm_riscv_vcpu_isa_disable_allowed X-Git-Tag: v6.15-rc1~195^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3f263a98d30fe2e33eefea297598c590ee3560e;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Andrew Jones Link: https://lore.kernel.org/r/20250221025929.31678-1-duchao@eswincomputing.com Signed-off-by: Anup Patel --- diff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c index f6d27b59c6419..43ee8e33ba238 100644 --- a/arch/riscv/kvm/vcpu_onereg.c +++ b/arch/riscv/kvm/vcpu_onereg.c @@ -203,7 +203,7 @@ static bool kvm_riscv_vcpu_isa_disable_allowed(unsigned long ext) case KVM_RISCV_ISA_EXT_SVADE: /* * The henvcfg.ADUE is read-only zero if menvcfg.ADUE is zero. - * Svade is not allowed to disable when the platform use Svade. + * Svade can't be disabled unless we support Svadu. */ return arch_has_hw_pte_young(); default: