Received: from eggs.gnu.org ([209.51.188.92]:54606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjXYE-0004YW-8K for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:51:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjXYB-00055Z-A2 for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:51:17 -0500 Received: from sonic307-12.consmr.mail.ne1.yahoo.com ([66.163.190.35]:36242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjXYA-0004wY-EV for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:51:14 -0500 Date: Tue, 15 Jan 2019 22:51:09 +0000 (UTC) From: Kamal Kakri Message-ID: <2050085823.124754.1547592669568@mail.yahoo.com> In-Reply-To: <1888836717.9067.1547583207433@mail.yahoo.com> References: <1888836717.9067.1547583207433.ref@mail.yahoo.com> <1888836717.9067.1547583207433@mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Devdax backend for vnvdimm not working List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" , "qemu-discuss@nongnu.org" My devdax device is 2MB aligned so I dont think this is alignment related.= # ndctl list -X -n namespace0.0 [ =C2=A0 { =C2=A0=C2=A0=C2=A0 "dev":"namespace0.0", =C2=A0=C2=A0=C2=A0 "mode":"devdax", =C2=A0=C2=A0=C2=A0 "map":"dev", =C2=A0=C2=A0=C2=A0 "size":16909336576, =C2=A0=C2=A0=C2=A0 "uuid":"e5265c0a-d902-41ce-b1d1-87a78c358aa4", =C2=A0=C2=A0=C2=A0 "daxregion":{ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "id":0, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "size":16909336576, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "align":2097152,=C2=A0 ---------------------= ----> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "devices":[ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "chardev":"dax0.0", =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "size":16909336576 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ] =C2=A0=C2=A0=C2=A0 } =C2=A0 } ] I even tried to create vnvdimm of exact same size as my devdax namespace, t= hinking that it would not need to ftruncate in that case but I still get th= e same error: # virsh start fox22vm start: domain(optdata): fox22vm start: found option : fox22vm start: trying as domain NAME error: Failed to start domain fox22vm error: internal error: qemu unexpectedly closed the monitor: ftruncate: Inv= alid argument 2019-01-15T21:58:52.647221Z qemu-kvm: -object memory-backend-file,id=3Dmemn= vdimm0,prealloc=3Dyes,mem-path=3D/dev/dax0.0,share=3Dyes,size=3D16909336576= : unable to map backing store for guest RAM: Invalid argument Has anyone ever got devdax backed vnvdimm configured and working?=20 If yes then pls let me know what libvirt/qemu/kernel version you have used = to get it working. Thanks. On Tuesday, January 15, 2019, 3:13:27 PM EST, Kamal Kakri wrote: =20 =20 Hi, I have a namespace (backed by real nvdimm h/w) configured in devdax mode: # ndctl list -N -n namespace0.0 [ =C2=A0 { =C2=A0=C2=A0=C2=A0 "dev":"namespace0.0", =C2=A0=C2=A0=C2=A0 "mode":"devdax", =C2=A0=C2=A0=C2=A0 "map":"dev", =C2=A0=C2=A0=C2=A0 "size":16909336576, =C2=A0=C2=A0=C2=A0 "uuid":"e5265c0a-d902-41ce-b1d1-87a78c358aa4", =C2=A0=C2=A0=C2=A0 "chardev":"dax0.0" =C2=A0 } ] When I try to configure my vm using "virsh" with something like this: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /dev/dax0.0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2048 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2097152 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 I get an error while starting my vm: # virsh start fox22vm start: domain(optdata): fox22vm start: found option : fox22vm start: trying as domain NAME error: Failed to start domain fox22vm error: internal error: qemu unexpectedly closed the monitor: ftruncate: Inv= alid argument 2019-01-15T18:00:36.587467Z qemu-kvm: -object memory-backend-file,id=3Dmemn= vdimm0,prealloc=3Dyes,mem-path=3D/dev/dax0.0,share=3Dyes,size=3D2147483648:= unable to map backing store for guest RAM: Invalid argument I have tried to add "align unit" to my virsh xml but it does not seem to pa= ss it onto qemu (as much as I can see from the qemu cmd line in the logs at= /var/log/libvirt/qemu) Can anyone pls hint as to what possibly could be the issue ? Is this alignm= ent related or something else ? Here are my versions: # virsh --version 4.5.0 [root@fox22hv libexec]# /usr/libexec/qemu-kvm --version QEMU emulator version 2.12.0 (qemu-kvm-rhev-2.12.0-18.el7_6.1) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers # uname -a Linux fox22hv 4.19.0-1.el7.elrepo.x86_64 #1 SMP Mon Oct 22 10:40:32 EDT 201= 8 x86_64 x86_64 x86_64 GNU/Linux =20