I run this on Intel CPU with integrated GPU with suppport for face recognision - i3-8100T . Your CPU need to support JPEG encoding: https://en.wikipedia.org/wiki/Intel_Quick_Sync_Video#Hardware_decoding_and_encoding . The best choice is a processor from the Coffee Lake series.
To run kernel with GPU virtualization you need to boot with params:
init_on_alloc=0 i915.enable_gvt=1 kvm.ignore_msrs=1 intel_iommu=on i915.enable_guc=0
Next, you need this hook to libvirt,
Variables: