All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jeniffer, Loren" <jeniffer.loren7@gmail.com>
To: xen-devel@lists.xensource.com
Subject: Question about grant table.
Date: Tue, 24 Feb 2009 11:58:29 +0900	[thread overview]
Message-ID: <49A36255.5090701@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1109 bytes --]

hi list,

Question about grant table. "The Definitive Guide to the Xen Hypervisor,
Ch 4.3"

struct grant_entry {
/* GTF_xxx: various type and flag information. [XEN,GST] */
uint16_t flags;
/* The domain being granted foreign privileges. [GST] */
domid_t domid;
/*
* GTF_permit_access: Frame that @domid is allowed to map and access. [GST]
* GTF_accept_transfer: Frame whose ownership transferred by @domid. [XEN]
*/
uint32_t frame;
};

The book says :

The last two fields in this are quite simple; they identify the domain
to which the rights are granted, and the page frame the entry refers to.
The domain (domid) is always filled in by the domain creating the entry.
If the domain is granting access to one of its own frames, the relevant
frame must be identified by the guest. _If the entry relates to a
transfer, the hypervisor will fill in the frame number after the transfer._

----------------------------------

I want to know what the last sentence means.
If some page is supposed to be transfered to some domain, why the
sending domain fill in the frame number ?
Why does the hypervisor do this ?


[-- Attachment #1.2: Type: text/html, Size: 1737 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2009-02-24  2:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24  2:58 Jeniffer, Loren [this message]
2009-02-24  5:45 ` Question about grant table Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2012-04-23 21:13 Ruslan Nikolaev
2012-04-24  7:58 ` Jan Beulich
2012-04-24 10:02   ` Ruslan Nikolaev
2006-11-07 11:26 Getting a bus address for granted page in dom0 Keir Fraser
2006-11-07 15:34 ` Kieran Mansley
2007-06-19  1:19   ` question about grant table tgh

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=49A36255.5090701@gmail.com \
    --to=jeniffer.loren7@gmail.com \
    --cc=xen-devel@lists.xensource.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.