Found it, I had to align with 16384 KiB value. As mentionned by the error message..
De: "Pierre Clouzet" <pierre.clouzet@xxxxxxxx>
À: "users" <users@xxxxxxxxxxxxxxxxx>
Envoyé: Mardi 13 Février 2024 09:50:13
Objet: add nvdimm and set it as a dax device
Hello,I'm trying to add an nvdimm device on my vm and configure it to a dax mode.Directly with qemu, I was:sudo ndctl disable-namespace namespace0.0sudo ndctl create-namespace -m devdaxsudo daxctl reconfigure-device -m system-ram all --forceHowever, when running with virt-manager, I get the following error message when I runsudo ndctl create-namespace -m devdaxError: create namespace: region0 align setting is 0x1000000 size 0x1dde0000 is misaligned.Here are the xml infos for the nvdimm device:<memory model="nvdimm" access="shared">
<source>
<path>/mnt/scratch/pclouzet/libvirt/dax0.0</path><alignsize unit="KiB">2048</alignsize>
<pmem/>
</source>
<target>
<size unit="KiB">488282</size>
<node>0</node>
<label>
<size unit="KiB">128</size>
</label>
</target>
<address type="dimm" slot="0"/>
</memory>
</devices>Is there an additional command I missed to set it as a dax device?Thanks,Pierre
_______________________________________________
Users mailing list -- users@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx
_______________________________________________ Users mailing list -- users@xxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx