All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Mike Belopuhov <mike.belopuhov@esdenera.com>, xen-devel@lists.xen.org
Subject: Re: Sub page Grant Table mappings
Date: Wed, 23 Dec 2015 10:06:14 +0000	[thread overview]
Message-ID: <567A7216.3060902@citrix.com> (raw)
In-Reply-To: <20151222205910.GA24365@kemushi.esdenera.com>

On 22/12/15 20:59, Mike Belopuhov wrote:
> Hi,
> 
> I'm trying to get grant table sub page mappings working on Xen 4.5.
> I know there have been some changes in the trunk regarding moving src/
> dst checks closer together, but I can't test this easily atm.  Please
> bear with me for a moment.  Or tell me that it might have been broken
> previously.
> 
> What I'm trying to do is to map in a 2k cluster from the networking
> stack (we call it an mbuf cluster, you might call it skb something)
> onto the Netfront Rx ring.  2 clusters fit one page.  Therefore for
> one frame address which is a (PA >> 12) I might have 2 entries one
> after the other, both with sub_page.length = 2048 but one with a
> sub_page.page_off = 2048 and the other with a 0 offset.  Both come
> with (GTF_permit_access | GTF_sub_page) flags.

The netif protocol doesn't allow subpages for Rx requests -- the backend
requires a full page to be granted.  Note how struct netif_rx_req only
has id and gref fields.

David

      parent reply	other threads:[~2015-12-23 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 20:59 Sub page Grant Table mappings Mike Belopuhov
2015-12-22 21:08 ` Andrew Cooper
2015-12-22 22:55 ` Mike Belopuhov
2015-12-23 10:06 ` 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=567A7216.3060902@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=mike.belopuhov@esdenera.com \
    --cc=xen-devel@lists.xen.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.