[PATCH v2 08/15] qemu: Move cpuset preference evaluation into a separate function