[PATCH 5.10 317/530] vfio/pci: Move VGA and VF initialization to functions