WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Question about grant table.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Question about grant table.
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=B1CSMBWV6SVAoZo4gf7ZDbAeNjXYl7kGMV2j37TgxwE=; b=exzlRD9d0Efo+dZVcqK+QChpvkYuixE63ix89lK5R1EUWEwTQ8HZykixYUFHH0pfhc xdu7iNRygPXkL32Nsf4kUStDt7jug17hgg+wxdpDn2M1iIneDYkZd4GVQtAZCLvd2q3e wgc6pt9Cf/GvAK4O8uRZo3mvsWQM+yjel+62c=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

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
<Prev in Thread] Current Thread [Next in Thread>