Hi Shuai,

Thanks for testing the series and for the detailed report.

Using your test setup, I was able to reproduce the hang with THP enabled.
Further investigation showed that the L2 vCPU repeatedly encountered a
store guest-page fault at the same GPA, while KVM kept attempting to
install a 2 MiB G-stage mapping.

This appears to be related to the issue addressed by the following
KVM patch:

https://lore.kernel.org/linux-riscv/[email protected]/

I applied a similar local fix to skip THP adjustment when a 4 KiB
G-stage leaf already exists, and the test completed successfully with
THP enabled.

Thanks,
Tan Chi


Reply via email to