diff --git a/pci/src/vfio.rs b/pci/src/vfio.rs index a1c28c911..23efa8c3d 100644 --- a/pci/src/vfio.rs +++ b/pci/src/vfio.rs @@ -1650,17 +1650,6 @@ impl VfioPciDevice { self.common.interrupt.msix.as_ref(), )?; - for area in &sparse_areas { - if !is_page_size_aligned(area.size) || !is_page_size_aligned(area.offset) { - error!( - "Could not mmap sparse area that is not page size aligned \ -(offset = 0x{:x}, size = 0x{:x})", - area.offset, area.size - ); - return Err(VfioPciError::MmapArea); - } - } - for area in sparse_areas.iter() { let mapping = match MmapRegion::mmap( area.size,