[libvirt] [PATCH v2 3/7] qemu: domain: Add common function to perform memory hotplug checks