View Issue Details

IDProjectCategoryView StatusLast Update
0016071CentOS-7qemu-kvmpublic2019-05-11 16:40
Status newResolutionopen 
Platformx86_64OScentosOS Version7.5
Product Version7.5.1804 
Target VersionFixed in Version 
Summary0016071: vNVDIMM: vfio_dma_map(…)=-12 (cannot allocate memory)
DescriptionI tried to use the vNVDIMM feature and unfortunately, I got the following error:
vfio_dma_map(…)=-12 (cannot allocate memory).

The settings I've added to the XML file to enable vNVDIMM:
<qemu:arg value='-machine'/>
<qemu:arg value='pc,nvdimm'/>
<qemu:arg value='-object'/>
<qemu:arg value='memory-backend-file,prealloc=yes,mem-path=/tmp/test_nvdimm0,share=on,size=4096M,id=nvdimm0'/>
<qemu:arg value='-device'/>
<qemu:arg value='nvdimm,memdev=nvdimm0,id=nv0,node=0'/>
<qemu:arg value='-object'/>
<qemu:arg value='memory-backend-file,prealloc=yes,mem-path=/tmp/test_nvdimm1,share=on,size=4096M,id=nvdimm1'/>
<qemu:arg value='-device'/>
<qemu:arg value='nvdimm,memdev=nvdimm1,id=nv1,node=1'/>
<qemu:arg value='-m'/>
<qemu:arg value='maxmem=32G,slots=32'/>

I would like to note that I am using SR-IOV with MLNX_OFED Driver because I need to use Mellanox 100GbE:
<hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
        <address domain='0x0000' bus='0x81' slot='0x00' function='0x2'/>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>

When I delete the devices from <hostdev> I see that vNVDIMM works successfully.

How can I continue to use SR-IOV and combine it with vNVDIMM?
Additional InformationQEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-28.el7.10.1)
Kernel: 3.10.0-862.14.4.el7.x86_64
TagsNo tags attached.




2019-05-11 16:40

manager   ~0034450

Only the current version gets support. Please `yum update` to 7.6 and retest.

Issue History

Date Modified Username Field Change
2019-05-11 16:27 mat55 New Issue
2019-05-11 16:40 TrevorH Note Added: 0034450