[libvirt] [PATCH 05/11] qemu: Move capability checks inside switch() statements