pub fn create_pmem_ext2_device(
protection_type: ProtectionType,
jail_config: Option<&JailConfig>,
resources: &mut SystemAllocator,
opts: &PmemExt2Option,
index: usize,
vm_memory_client: VmMemoryClient,
pmem_device_tube: Tube,
worker_process_pids: &mut BTreeSet<Pid>,
) -> Result<VirtioDeviceStub>