[PATCH 2/4] qemu_domain: Properly validate count of memory slots