[libvirt] [PATCH 1/3] qemu: Refactor the max memlock routine