Re: add nvdimm and set it as a dax device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.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@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx
_______________________________________________
Users mailing list -- users@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxx

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux