From 84ea6a79e2dfbbc3787b0230e69d922964aa422f Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Mon, 7 Nov 2022 22:27:34 -0400 Subject: sys/linux: fix VFIO map/unmap unmap has its own set of flags that trigger interesting behavior. map needs to take in a user_va or it will not succeed in many cases. --- sys/linux/dev_vfio.txt.const | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/linux/dev_vfio.txt.const') diff --git a/sys/linux/dev_vfio.txt.const b/sys/linux/dev_vfio.txt.const index fee9d6bc8..349359bc8 100644 --- a/sys/linux/dev_vfio.txt.const +++ b/sys/linux/dev_vfio.txt.const @@ -5,6 +5,9 @@ VFIO_CHECK_EXTENSION = 15205, mips64le:ppc64le:536886117 VFIO_DMA_CC_IOMMU = 4 VFIO_DMA_MAP_FLAG_READ = 1 VFIO_DMA_MAP_FLAG_WRITE = 2 +VFIO_DMA_UNMAP_FLAG_ALL = 2 +VFIO_DMA_UNMAP_FLAG_GET_DIRTY_BITMAP = 1 +VFIO_DMA_UNMAP_FLAG_VADDR = 4 VFIO_EEH = 5 VFIO_GET_API_VERSION = 15204, mips64le:ppc64le:536886116 VFIO_IOMMU_GET_INFO = 15216, mips64le:ppc64le:536886128 -- cgit mrf-deployment