This video shows how two-stage address translation works.
Specifically, this video shows RISC-V VS-stage and G-stage translation.
References:
Diagram inspired by:
https://github.com/riscv/virtual-memo...
https://rayanfam.com/topics/hyperviso...
G-stage mapping example code:
https://github.com/torvalds/linux/blo...
https://github.com/KuangjuX/hypocaust...