Re: [PATCH] KVM: riscv: Only fast-path dirty-log write faults on host-writable leaves

From: SeungJu Cheon

Date: Fri Nov 06 2026 - 05:03:19 EST


On Fri, Oct 23, 2026 at 8:57 PM Jinyu Tang <jinyu.tang@xxxxxxxxx> wrote:
> Tested on QEMU 10.2.1 with a private memfd mapping and dirty logging.
> A guest read followed by a write corrupts the shared backing without
> this fix; and with it, CoW occurs and the backing stays unchanged.
>
> Reviewed-by: Jinyu Tang <jinyu.tang@xxxxxxxxx>
>
> Thanks,
> Jinyu

Thanks for testing this with a private memfd mapping and for the
review.

I'll include the additional fix pointed out by Sashiko and Inochi
in v2 and carry your Reviewed-by, unless you'd rather take another
look.

Thanks,
SeungJu