The tree that L2 runs on (EPT02) is emptied whenever EPT01 changes,
which pm_eptgen tells. The page daemon clears the accessed flags of
EPT01 thousands of times a second, and each time every vCPU's EPT02 was
thrown away. With Hyper-V as L1, its root partition as L2 spent its
time refilling the tree, and Windows stopped with
DPC_WATCHDOG_VIOLATION.
Leave out of the generation the changes that pmap counts in
pm_eptgen_ad, which only clear an accessed flag. L2's accesses do not
set the flag again, so its pages look less used to the page daemon.
AI assistance: as D61708, this change was developed with an AI assistant (Anthropic's Claude) under my direction. The assistant wrote the code and this description. The tests in the test plan were run on real hardware.
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev