fn allocate_io_bars<F>(
    virtio_pci_device: &mut VirtioPciDevice,
    alloc_fn: F
) -> Result<Vec<BarRange>, PciDeviceError>