From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: "misono.tomohiro@fujitsu.com" <misono.tomohiro@fujitsu.com>,
"Bradford, Robert" <robert.bradford@intel.com>,
"virtio-fs@redhat.com" <virtio-fs@redhat.com>,
"Ortiz, Samuel" <samuel.ortiz@intel.com>,
"masayoshi.mizuma@fujitsu.com" <masayoshi.mizuma@fujitsu.com>,
"vgoyal@redhat.com" <vgoyal@redhat.com>
Subject: Re: [Virtio-fs] xfstest results for virtio-fs on aarch64
Date: Wed, 20 Nov 2019 16:53:14 +0000 [thread overview]
Message-ID: <20191120165314.GD2858@work-vm> (raw)
In-Reply-To: <20191113113920.GA538417@stefanha-x1.localdomain>
* Stefan Hajnoczi (stefanha@redhat.com) wrote:
> On Wed, Nov 13, 2019 at 06:40:54AM +0000, Boeuf, Sebastien wrote:
> > On Tue, 2019-11-12 at 09:45 +0000, Stefan Hajnoczi wrote:
> > > On Fri, Nov 01, 2019 at 10:26:54PM +0000, Boeuf, Sebastien wrote:
> > > > +Samuel
> > > > +Rob
> > > >
> > > > Hi Stefan, Dave,
> > > >
> > > > I had some time to get started on the virtiofsd in Rust, based on
> > > > the
> > > > code from Chirantan. So basically I relied on the following Crosvm
> > > > branch (code not merged yet):
> > > > https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1705654
> > > >
> > > > From there I have ported the code that was needed to rely on the
> > > > nice
> > > > implementation from Chirantan. I had to make it fit the vm-virtio
> > > > crate
> > > > from Cloud-Hypervisor (since it's not yet complete on rust-vmm),
> > > > and
> > > > also the vm-memory crate from rust-vmm.
> > > >
> > > > Once the porting done, I created a dedicated vhost-user-fs daemon
> > > > binary relying on the vhost_user_backend crate. I connected all the
> > > > dots together and the result is here:
> > > > https://github.com/intel/cloud-hypervisor/pull/404
> > > >
> > > > I have listed the remaining tasks here:
> > > > https://github.com/intel/cloud-hypervisor/pull/404#issue-335636924
> > > > (some can be quite big and should come as a follow up PR IMO).
> > > >
> > > > I'll be in vacation next week, but if you have some time, it'd be
> > > > very
> > > > nice to get everybody's feedback on this.
> > > >
> > > > And of course, if you have more time to continue working on this,
> > > > feel
> > > > free to reuse my branch 'vhost_user_fs_daemon' from my forked repo
> > > > https://github.com/sboeuf/cloud-hypervisor-1.git
> > >
> > > Awesome, thanks!
> >
> > I've been trying to make this work today, unfortunately I'm running
> > into some issues. Basically what happens is that I don't get a writable
> > descriptor, which means the reply to the FUSE init() cannot be sent.
> >
> > Chirantan, I was wondering if your code in Crosvm is working properly
> > with virtio-fs? And if that's the case, have you ever get the problem
> > I'm describing where the virtio descriptor does not have the write only
> > flag, which prevents the Writer from being provisioned with buffers.
> >
> > Stefan, do you know if the virtio-fs driver actually tags some
> > descriptor as write_only? I'm trying to understand what is missing
> > here.
>
> A vring descriptor is either driver->device ("out") or device->driver
> ("in").
>
> A virtio-fs request typically contains both descriptor types because it
> consists of a request (e.g. struct fuse_in_header + struct fuse_init_in)
> and a response (e.g. struct fuse_out_header + struct fuse_init_out).
>
> By the way, VIRTIO and FUSE use the terms "in"/"out" in the opposite
> sense. VIRTIO "out" is driver->device and "in" is device->driver. FUSE
> "out" is device->driver and "in" is driver->device. Just wanted to
> point that out to prevent confusion :-).
Yes, it's pretty confusing; I'd got into the habit of adding comments
where ever I'm using in/out; e.g.:
'/* out is from guest, in is too guest */'
in the corresponding C code.
Dave
> If you are only seeing a driver->device descriptor but not the
> device->driver descriptor, then something is wrong with the vring
> processing code in the device.
>
> The guest driver places requests into the virtqueue in
> fs/fuse/virtio_fs.c:virtio_fs_enqueue_req().
>
> Stefan
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2019-11-20 16:53 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-07 12:11 [Virtio-fs] xfstest results for virtio-fs on aarch64 qi.fuli
2019-10-07 14:34 ` Dr. David Alan Gilbert
2019-10-09 16:51 ` Dr. David Alan Gilbert
2019-10-10 9:57 ` qi.fuli
2019-10-11 9:21 ` Dr. David Alan Gilbert
2019-10-11 18:45 ` Chirantan Ekbote
2019-10-11 19:59 ` Vivek Goyal
2019-10-11 20:13 ` Chirantan Ekbote
2019-10-11 20:36 ` Vivek Goyal
2019-10-14 9:11 ` Stefan Hajnoczi
2019-10-15 14:58 ` Chirantan Ekbote
2019-10-15 15:57 ` Dr. David Alan Gilbert
2019-10-15 16:11 ` Chirantan Ekbote
2019-10-15 16:26 ` Dr. David Alan Gilbert
2019-10-15 17:28 ` Boeuf, Sebastien
2019-10-15 18:21 ` Chirantan Ekbote
2019-10-16 14:14 ` Stefan Hajnoczi
2019-10-16 16:14 ` Boeuf, Sebastien
2019-10-16 18:38 ` Stefan Hajnoczi
2019-10-17 5:19 ` Boeuf, Sebastien
2019-11-01 22:26 ` Boeuf, Sebastien
2019-11-12 9:45 ` Stefan Hajnoczi
[not found] ` <5238b860a8d544e59c9a827fbc26418d53482ccf.camel@intel.com>
2019-11-13 11:39 ` Stefan Hajnoczi
2019-11-20 16:53 ` Dr. David Alan Gilbert [this message]
2019-10-16 16:11 ` Boeuf, Sebastien
2019-10-16 18:37 ` Stefan Hajnoczi
2019-10-16 14:09 ` Stefan Hajnoczi
2019-10-16 19:36 ` Chirantan Ekbote
2019-10-16 19:44 ` Vivek Goyal
2019-10-17 9:23 ` Stefan Hajnoczi
2019-11-06 12:13 ` Dr. David Alan Gilbert
2019-11-07 8:03 ` misono.tomohiro
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=20191120165314.GD2858@work-vm \
--to=dgilbert@redhat.com \
--cc=masayoshi.mizuma@fujitsu.com \
--cc=misono.tomohiro@fujitsu.com \
--cc=robert.bradford@intel.com \
--cc=samuel.ortiz@intel.com \
--cc=stefanha@redhat.com \
--cc=vgoyal@redhat.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.