All of lore.kernel.org
 help / color / mirror / Atom feed
From: piaojun <piaojun@huawei.com>
To: virtio-fs@redhat.com
Subject: [Virtio-fs] [QUESTION] Can not enable dax option
Date: Tue, 6 Aug 2019 17:13:48 +0800	[thread overview]
Message-ID: <5D4944CC.30100@huawei.com> (raw)

Hi,

Dax could not be enabled by run the following command:

QEMU command:
qemu-system-x86_64 -M pc -cpu host --enable-kvm -smp 2 \
-m 4G,maxmem=4G -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem \
-drive if=none,id=root,format=qcow2,file=centos_7.3_64.qcow2 -device virtio-scsi -device scsi-disk,drive=root,bootindex=1 -object iothread,id=io \
-device virtio-scsi-pci,iothread=io -net nic,model=virtio -vnc 0.0.0.0:0 \
-chardev socket,id=char0,path=/tmp/vhostqemu -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs,cache-size=2G

Guest command:
# mount -t virtio_fs myfs /mnt/virtiofs -o rootmode=040000,user_id=0,group_id=0,dax

When I rmmod/insmod again, the error message shows that something is
wrong with 'cache capability':

virtio_pci_find_shm_cap: shm cap with bad size offset: 164 size: 24
virtio_fs virtio2: virtio_fs_setup_dax: No cache capability


Code url:
https://github.com/rhvgoyal/linux/commits/virtio-fs-dev-5.1
https://gitlab.com/virtio-fs/qemu/tree/virtio-fs-dev

Thanks,
Jun


             reply	other threads:[~2019-08-06  9:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06  9:13 piaojun [this message]
2019-08-06  9:42 ` [Virtio-fs] [QUESTION] Can not enable dax option Dr. David Alan Gilbert
2019-08-06 11:26   ` piaojun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5D4944CC.30100@huawei.com \
    --to=piaojun@huawei.com \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.