Optane DCPMM Virtualization on Proxmox - VFIO_MAP_DMA failed

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

NablaSquaredG

Layer 1 Magician
Aug 17, 2020
1,377
837
113
Hey folks,

I'm trying something very niche: Virtualize NVDIMM aka Optane DCPMM on Proxmox.

I followed those guides:

Optane DCPMM in Mixed Mode @ Intel Xeon 8259CL @ ASRock EPC621D8A
Proxmox 8.2 with 6.8 kernel

I compiled my own Qemu (pve-qemu-kvm-8.1.5-5) with pmem supported enabled, so the pmem flag is recognized

However, all I get is a

Code:
kvm: -device nvdimm,memdev=mem1,id=nv1,label-size=2M: VFIO_MAP_DMA failed: Operation not supported
kvm: -device nvdimm,memdev=mem1,id=nv1,label-size=2M: vfio_dma_map(0x59782afbe560, 0x880000000, 0xffe00000, 0x73401fe00000) = -95 (Operation not supported)
qemu: hardware error: vfio: DMA mapping failed, unable to continue
I am successfully using SR-IOV on the machine, so IOMMU should work?

Any ideas how to fix this?
 

gb00s

Well-Known Member
Jul 25, 2018
1,206
605
113
Poland
Hey folks,

I'm trying something very niche: Virtualize NVDIMM aka Optane DCPMM on Proxmox.

I followed those guides:

Optane DCPMM in Mixed Mode @ Intel Xeon 8259CL @ ASRock EPC621D8A
Proxmox 8.2 with 6.8 kernel

I compiled my own Qemu (pve-qemu-kvm-8.1.5-5) with pmem supported enabled, so the pmem flag is recognized

However, all I get is a

Code:
kvm: -device nvdimm,memdev=mem1,id=nv1,label-size=2M: VFIO_MAP_DMA failed: Operation not supported
kvm: -device nvdimm,memdev=mem1,id=nv1,label-size=2M: vfio_dma_map(0x59782afbe560, 0x880000000, 0xffe00000, 0x73401fe00000) = -95 (Operation not supported)
qemu: hardware error: vfio: DMA mapping failed, unable to continue
I am successfully using SR-IOV on the machine, so IOMMU should work?

Any ideas how to fix this?
Show us your args for the vm please.