[libvirt] [PATCH 3/6] qemu: replace multiple strcmps with a switch on an enum