[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Question about grant table.


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Jeniffer, Loren" <jeniffer.loren7@xxxxxxxxx>
  • Date: Tue, 24 Feb 2009 11:58:29 +0900
  • Delivery-date: Mon, 23 Feb 2009 18:59:41 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=NOXNvXqTNI7zv5mibcrLhVGJGv5kaQVdmMZRxn0UrOga7/gsJRiAsRLATZAmcQ/0aA ivnvJtnu0W/ceCvDFU5LYBACu+s+PSV7dK4eZjIi4eDqwYi/Vnjg8q/5YAnc1kkEIYCx mVMzzJ4iswo2RSUnpAgYPTZ86twgK4UyZksSM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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 ?

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.