From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Stefano Stabellini <stefano@aporeto.com>
Cc: andr2000@gmail.com, xen-devel@lists.xenproject.org,
wei.liu2@citrix.com, andrew.cooper3@citrix.com
Subject: Re: [DOC v3] Xen transport for 9pfs
Date: Fri, 27 Jan 2017 14:59:08 -0500 [thread overview]
Message-ID: <20170127195908.GA4529@char.us.ORACLE.com> (raw)
In-Reply-To: <20170125170722.GA27705@char.us.oracle.com>
> >
> > ## Ring Setup
> >
> > The shared page has the following layout:
> >
> > typedef uint32_t XEN_9PFS_RING_IDX;
> >
> > struct xen_9pfs_intf {
> > XEN_9PFS_RING_IDX in_cons, in_prod, in_event;
> > XEN_9PFS_RING_IDX out_cons, out_prod, out_event;
> >
> > uint32_t ring_order;
> > /* this is an array of (1 << ring_order) elements */
> > grant_ref_t ref[1];
> > };
>
> Could you explain why DEFINE_RING_TYPES would not work?
>
> Could you explain more what '[in|out]_event' ?
>
> Also would it be possible to re-organize this structure
> so there are no cache bounces?
This, along with a similar layout in the PV Calls got me thinking.
Why aren't you using the standard old fashioned DEFINE_RING_TYPES.
And if there is something wrong with it - why not use something
that has been tried and true. Like the VirtIO available and used
ring? That has the idea of 'avail_even't as an index.
And also it provides two nice pages where one is written by
the frontend while the other by the backend. Which nicely
takes into account cache bounces.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-01-27 19:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 0:54 [DOC v3] Xen transport for 9pfs Stefano Stabellini
2017-01-25 17:07 ` Konrad Rzeszutek Wilk
2017-01-27 19:59 ` Konrad Rzeszutek Wilk [this message]
2017-01-27 20:26 ` Stefano Stabellini
2017-01-27 23:19 ` Stefano Stabellini
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=20170127195908.GA4529@char.us.ORACLE.com \
--to=konrad.wilk@oracle.com \
--cc=andr2000@gmail.com \
--cc=andrew.cooper3@citrix.com \
--cc=stefano@aporeto.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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.