Re: [PATCH] KVM: riscv: Only fast-path dirty-log write faults on host-writable leaves
From: SeungJu Cheon
Date: Fri Nov 06 2026 - 04:52:09 EST
On Fri, Nov 6, 2026 at 11:03 AM Inochi Amaoto <inochiama@xxxxxxxxx> wrote:
> I guess this fix miss a part:
>
> diff --git a/arch/riscv/kvm/mmu.c b/arch/riscv/kvm/mmu.c
> index 53bb25a5a60b..1b35ab980a10 100644
> --- a/arch/riscv/kvm/mmu.c
> +++ b/arch/riscv/kvm/mmu.c
> @@ -761,7 +761,7 @@ int kvm_riscv_mmu_map(struct kvm_vcpu *vcpu, struct kvm_memory_slot *memslot,
>
> out_unlock:
> kvm_release_faultin_page(kvm, page,
> - unused || (ret && ret != -EEXIST), writable);
> + unused || (ret && ret != -EEXIST), host_writable);
> write_unlock(&kvm->mmu_lock);
> return ret;
> }
>
> Regards,
> Inochi
Thanks for the review.
Sashiko also caught this shortly after v1 was posted. I'll include the
fix in v2 and send it shortly.
Thanks,
SeungJu