jonomango / hv

Lightweight Intel VT-x Hypervisor.
MIT License
363 stars 77 forks source link

System lag after turning on ept #37

Open 1401199262 opened 10 months ago

1401199262 commented 10 months ago

The system becomes lag after turning on ept. CPU i9-13980HX with 32GB memory and I set ept_pd_count = 512;

after I splited the first 2mb physical memory into small page, this problem seems not to appear, maybe it's related to MMIO.

I simply add get_ept_pte(ept, 0, true); at prepare_ept(vcpu_ept_data& ept) or reconstruct the first 2mb large page to small page.

jonomango commented 10 months ago

Thats actually pretty interesting, thanks. I have something similar on my TODO list already, but haven't gotten around to implementing it yet... https://github.com/jonomango/hv/blob/main/hv/ept.cpp#L42-L44.