Found it, I had to align with 16384 KiB value. As mentionned by the error 
message.. 

> De: "Pierre Clouzet" <pierre.clou...@inria.fr>
> À: "users" <users@lists.libvirt.org>
> 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.0
> sudo ndctl create-namespace -m devdax
> sudo daxctl reconfigure-device -m system-ram all --force

> However, when running with virt-manager, I get the following error message 
> when
> I run
> sudo ndctl create-namespace -m devdax

> Error: 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@lists.libvirt.org
> To unsubscribe send an email to users-le...@lists.libvirt.org
_______________________________________________
Users mailing list -- users@lists.libvirt.org
To unsubscribe send an email to users-le...@lists.libvirt.org

Reply via email to