jonomango / hv

Lightweight Intel VT-x Hypervisor.
MIT License
406 stars 86 forks source link

System lag after turning on ept #37

Open 1401199262 opened 1 year ago

1401199262 commented 1 year 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 1 year 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.