[PATCH] KVM: riscv: Only fast-path dirty-log write faults on host-writable leaves
SeungJu Cheon
suunj1331 at gmail.com
Fri Nov 6 01:49:51 PST 2026
On Fri, Nov 6, 2026 at 11:03 AM Inochi Amaoto <inochiama at gmail.com> 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
More information about the kvm-riscv
mailing list