vfio_pci_region_get
vfio_pci_region_get(device, VFIO_PCI_CONFIG_REGION_INDEX, &device->config_space);
vfio_pci_region_get(device, i, &bar->info);