From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Cao jin <caoj.fnst@cn.fujitsu.com>
Cc: virtio-fs@redhat.com, qi.fuli@fujitsu.com
Subject: Re: [Virtio-fs] issues with accessing 2 directory trees
Date: Thu, 22 Aug 2019 20:17:10 +0100 [thread overview]
Message-ID: <20190822191450.GP3277@work-vm> (raw)
In-Reply-To: <16b9edb2-002c-46b8-981b-39323e918cf0@cn.fujitsu.com>
* Cao jin (caoj.fnst@cn.fujitsu.com) wrote:
> Hi,
>
> I am trying virtio fs for accessing 2 directory trees, but find it has
> problem when mounting the 2nd one. Hoping to get some hints whether I made
> mistakes or anything else.
>
> steps:
> 1. start 2 daemons:
> sudo ./virtiofsd -o vhost_user_socket=/tmp/vhostqemu1 -o source=~/shareguest1/ -o cache=always
> sudo ./virtiofsd -o vhost_user_socket=/tmp/vhostqemu2 -o source=~/shareguest2/ -o cache=always
>
> 2. qemu command line:
> sudo ./qemu-system-x86_64 -M q35 -cpu host --enable-kvm -smp 2 -m 4G,slots=4,maxmem=8G \
> -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa node,memdev=mem \
> -chardev socket,id=char0,path=/tmp/vhostqemu1 -device vhost-user-fs-pci,queue-size=1024,chardev=char0,tag=myfs1,cache-size=1G \
> -chardev socket,id=char1,path=/tmp/vhostqemu2 -device vhost-user-fs-pci,queue-size=1024,chardev=char1,tag=myfs2,cache-size=1G \
> --serial stdio -netdev tap,id=net0 -device virtio-net-pci,netdev=net0,id=net0,mac=52:54:00:72:20:55
> -drive if=virtio,file=~/iso/f28s.qcow2
>
> Then, guest console report error when probing 2nd virtiofs device with:
> [ 2.809341] virtio_fs virtio1: Cache len: 0x40000000 @ 0x3c0000000
> [ 2.811204] x86/PAT: systemd-udevd:266 conflicting memory types 3c0000000-408000000 write-back<->uncached-minus
> [ 2.813309] x86/PAT: reserve_memtype failed [mem 0x3c0000000-0x407ffffff], track write-back, req write-back
Looking at your other mail you can see why it's upset - the range
includes both the DAX mapping (that's RAM like) and the virtio registers
(that aren't) - now the question is who/what is building that range that
includes both of them.
Dave
> [ 2.924576] virtio_fs: probe of virtio1 failed with error -16
>
> So, mount will not success on the 2nd directory tree.
> --
> Sincerely,
> Cao jin
>
>
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs@redhat.com
> https://www.redhat.com/mailman/listinfo/virtio-fs
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
prev parent reply other threads:[~2019-08-22 19:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-13 9:03 [Virtio-fs] issues with accessing 2 directory trees Cao jin
2019-08-13 13:06 ` Vivek Goyal
2019-08-14 6:33 ` Cao jin
2019-08-22 19:17 ` Dr. David Alan Gilbert [this message]
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=20190822191450.GP3277@work-vm \
--to=dgilbert@redhat.com \
--cc=caoj.fnst@cn.fujitsu.com \
--cc=qi.fuli@fujitsu.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.