Use the new KVM ioctl KVM_SET_USER_MEMORY_REGION_LIST. Based on my QEMU serie "[RFC PATCH v2 0/3] accel/kvm: extend kvm memory listener to support". Based-on: 20220909081150.709060-1-eesposit@xxxxxxxxxx Requires my KVM serie "[RFC PATCH 0/9] kvm: implement atomic memslot updates" https://lkml.org/lkml/2022/9/9/533 Emanuele Giuseppe Esposito (1): kvm/kvm-all.c: implement KVM_SET_USER_MEMORY_REGION_LIST ioctl accel/kvm/kvm-all.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) -- 2.31.1