[PATCH 5.12 396/677] vfio/pci: Move VGA and VF initialization to functions