Lines Matching +full:send +full:- +full:migration

3 // SPDX-License-Identifier: Apache-2.0
63 fn get_register_value(&self) -> u8 { in get_register_value()
79 ) -> Result<Self, VfioUserPciDeviceError> { in new()
113 pub fn map_mmio_regions(&mut self) -> Result<(), VfioUserPciDeviceError> { in map_mmio_regions()
250 ) -> Result<(), VfioUserPciDeviceError> { in dma_map()
266 ) -> Result<(), VfioUserPciDeviceError> { in dma_unmap()
280 fn write(&mut self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { in write()
298 Migration, enumerator
322 fn get_irq_info(&self, irq_index: u32) -> Option<VfioIrq> { in get_irq_info()
335 fn enable_irq(&self, irq_index: u32, event_fds: Vec<&EventFd>) -> Result<(), VfioError> { in enable_irq()
347 let remaining_fds = num_fds - sent_fds; in enable_irq()
372 fn disable_irq(&self, irq_index: u32) -> Result<(), VfioError> { in disable_irq()
387 fn unmask_irq(&self, irq_index: u32) -> Result<(), VfioError> { in unmask_irq()
410 ) -> Result<Vec<PciBarConfiguration>, PciDeviceError> { in allocate_bars()
420 ) -> Result<(), PciDeviceError> { in free_bars()
425 fn as_any_mut(&mut self) -> &mut dyn Any { in as_any_mut()
434 ) -> (Vec<BarReprogrammingParams>, Option<Arc<Barrier>>) { in write_config_register()
438 fn read_config_register(&mut self, reg_idx: usize) -> u32 { in read_config_register()
446 fn write_bar(&mut self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { in write_bar()
450 fn move_bar(&mut self, old_base: u64, new_base: u64) -> Result<(), std::io::Error> { in move_bar()
451 info!("Moving BAR 0x{:x} -> 0x{:x}", old_base, new_base); in move_bar()
473 user_memory_region.start += new_base - old_base; in move_bar()
475 user_memory_region.start -= old_base - new_base; in move_bar()
492 info!("Moved bar 0x{:x} -> 0x{:x}", old_base, new_base); in move_bar()
499 fn id(&self) -> Option<String> { in id()
525 error!("Failed shutting down vfio-user client: {}", e); in drop()
533 fn id(&self) -> String { in id()
537 fn snapshot(&mut self) -> std::result::Result<Snapshot, MigratableError> { in snapshot()
555 pub fn new(client: Arc<Mutex<Client>>, memory: Arc<M>) -> Self { in new()
560 impl<M: GuestAddressSpace + Sync + Send> ExternalDmaMapping for VfioUserDmaMapping<M> {
561 fn map(&self, iova: u64, gpa: u64, size: u64) -> std::result::Result<(), std::io::Error> { in map()
583 fn unmap(&self, iova: u64, size: u64) -> std::result::Result<(), std::io::Error> { in unmap()