memflow / memflow-kvm

Linux kernel module for memflow's KVM connector
MIT License
40 stars 8 forks source link

Fix kmod for linux kernel version 6.5.0 #14

Closed ajkhoury closed 11 months ago

ajkhoury commented 11 months ago

These changes remove the tmp_vmas argument passed to get_user_pages_remote() as the vmas parameter was removed from get_user_pages_remote() in linux kernel v6.5.0. Ref: https://lwn.net/Articles/932265/

ajkhoury commented 11 months ago

Thanks for the quick feedback! I've added an ifdef for the free_pages label in the latest commit.

ajkhoury commented 11 months ago

Looks good now! I personally wonder whether this will break the mapping if under load, but perhaps the only way to find out is to test it on real hardware (which I can't do atm). This doesn't change old kernels, should be good to merge either way. Thanks a bunch!

I've been running this all day (with decent load) using the kvm connector without issue on my Intel 8th gen PC with a Windows 10 22h2 guest