[libvirt] [PATCH] cpu: fix possible crash in getModels