View Issue Details

IDProjectCategoryView StatusLast Update
0016071CentOS-7qemu-kvmpublic2019-05-11 16:40
Reportermat55 
PrioritynormalSeverityminorReproducibilityalways
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:commandline>
<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'/>
</qemu:commandline>


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'/>
      <source>
        <address domain='0x0000' bus='0x81' slot='0x00' function='0x2'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </hostdev>

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.
abrt_hash
URL

Activities

TrevorH

TrevorH

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