From: David Vrabel <david.vrabel@citrix.com>
To: Thanos Makatos <thanos.makatos@citrix.com>,
xen-devel@lists.xenproject.org
Cc: boris.ostrovsky@oracle.com, david.vrabel@citrix.com
Subject: Re: [PATCH v2] introduce grant copy for user land
Date: Mon, 8 Dec 2014 11:02:07 +0000 [thread overview]
Message-ID: <5485852F.3080600@citrix.com> (raw)
In-Reply-To: <1417536806-22562-1-git-send-email-thanos.makatos@citrix.com>
On 02/12/14 16:13, Thanos Makatos wrote:
>
> +struct gntdev_grant_copy_segment {
> +
> + union {
> + /* copy from (to) self to (from) guest */
> + struct {
> + /*
> + * source address and length
> + */
> + struct iovec iov;
> +
> + /* the granted page */
> + uint32_t ref;
> +
> + /* offset in the granted page */
> + uint16_t offset;
> + } self;
> +
> + /* copy from guest to guest */
> + struct {
> + uint16_t len;
> +
> + struct {
> + /* the granted page */
> + uint32_t ref;
> +
> + /* offset in the granted page */
> + uint16_t offset;
> + } src, dst;
> + } g2g;
> + };
> +
> + /* grant copy result (GNTST_XXX) */
> + int16_t status;
> +};
I asked for this ioctl to mirror the hypercall.
Which looks like:
struct gnttab_copy {
/* IN parameters. */
struct {
union {
grant_ref_t ref;
xen_pfn_t gmfn;
} u;
domid_t domid;
uint16_t offset;
} source, dest;
uint16_t len;
uint16_t flags; /* GNTCOPY_* */
/* OUT parameters. */
int16_t status;
};
i.e., each operation specifies the domid of the source and destination
and whether it includes a ref or a virtual address.
David
prev parent reply other threads:[~2014-12-08 11:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 16:13 [PATCH v2] introduce grant copy for user land Thanos Makatos
2014-12-05 18:05 ` Boris Ostrovsky
2014-12-09 12:34 ` Thanos Makatos
2014-12-08 11:02 ` David Vrabel [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=5485852F.3080600@citrix.com \
--to=david.vrabel@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=thanos.makatos@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.