From: Daniel Stodden Subject: Re: about grant table Date: Tue, 04 Mar 2008 17:16:05 +0100 Message-ID: <1204647365.6625.5.camel@thinkpad.localdomain> References: <298d852f0803032220n136b8033l30780c508d14d549@mail.gmail.com> <1204644364.6184.14.camel@thinkpad.localdomain> <298d852f0803040807s796b6d41ya9e9d83e733113bb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <298d852f0803040807s796b6d41ya9e9d83e733113bb@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?UTF-8?Q?=E4=BD=99=E4=B8=8A?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 2008-03-05 at 00:07 +0800, =E4=BD=99=E4=B8=8A wrote: > > 1. domU writes a shared entry at index > So I guess there needs a transfer between guest OS and Xen ? not sure what you mean. grant transfer? certainly not. control transfer? also not. grant tables are just a bunch of pages allocated to the domain during creation. mapped r/w both by the hypervisor and the guest. the guest writes the bigger part of its entries. shared flags are altered atomically via compare-and-swap instructions from both sides.=20 the active entries are because xen needs to keep the fields private once they are in use. regards, daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B