From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: DAX can not work on virtual nvdimm device Date: Wed, 31 Aug 2016 16:44:47 +0800 Message-ID: <25098f37-53f7-6d5d-0b1a-8469bab51a9f@linux.intel.com> References: <436d7526-bf06-633d-afce-4333552d9e31@linux.intel.com> <20160819183047.GA7216@linux.intel.com> <600ac51c-0f61-6e53-9bfa-669c85494d1f@linux.intel.com> <20160829193014.GB16738@linux.intel.com> <61d5c470-a8bf-86d5-d1fe-b4b577a85967@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org Sender: "Linux-nvdimm" To: Dan Williams Cc: Yumei Huang , KVM , "linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org" , LKML , "qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org" , Linux ACPI , Stefan Hajnoczi List-Id: linux-acpi@vger.kernel.org On 08/31/2016 01:09 AM, Dan Williams wrote: > > Can you post your exact reproduction steps? This test is not failing for me. > Sure. 1. make the guest kernel based on your tree, the top commit is 10d7902fa0e82b (dax: unmap/truncate on device shutdown) and the config file can be found in this thread. 2. add guest kernel command line: memmap=6G!10G 3: start the guest: x86_64-softmmu/qemu-system-x86_64 -machine pc,nvdimm --enable-kvm \ -smp 16 -m 32G,maxmem=100G,slots=100 /other/VMs/centos6.img -monitor stdio 4: in guest: mkfs.ext4 /dev/pmem0 mount -o dax /dev/pmem0 /mnt/pmem/ echo > /mnt/pmem/xxx ./mmap /mnt/pmem/xxx ./read /mnt/pmem/xxx The source code of mmap and read has been attached in this mail. Hopefully, you can detect the error triggered by read test. Thanks!