util: virhostcpu: Extract filtering of the returned data from virHostCPUGetCPUID
util: virhostcpu: Extract filtering of the returned data from virHostCPUGetCPUID

Move the filtering code into virHostCPUGetCPUIDFilterVolatile.

This also removes a safe but very questionable reuse of 'i' iterator in
the both the top level and nested loop. It's safe for now as the to
level loop will not iterate any more in the current state.

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Jiri Denemark <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,crobinso/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,zippy2/libvirt,libvirt/libvirt,olafhering/libvirt,libvirt/libvirt,jfehlig/libvirt,jfehlig/libvirt,zippy2/libvirt,libvirt/libvirt,libvirt/libvirt