Move kvm memory registration inside qemu's