]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
RISC-V: KVM: Optimize comments in kvm_riscv_vcpu_isa_disable_allowed
authorChao Du <duchao@eswincomputing.com>
Fri, 21 Feb 2025 02:59:29 +0000 (02:59 +0000)
committerAnup Patel <anup@brainfault.org>
Thu, 20 Mar 2025 06:03:56 +0000 (11:33 +0530)
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>
arch/riscv/kvm/vcpu_onereg.c

index f6d27b59c6419cde45300c6afb172e883b73d763..43ee8e33ba238e08d800253b8710112953ab657e 100644 (file)
@@ -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: