kvm: iommu: Add cond_resched to legacy device assignment code
(bnc#910159).