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-ia64-devel

Re: [Xen-ia64-devel] Modify to introduce delayed p2m table destruction

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] Modify to introduce delayed p2m table destruction
From: Doi.Tsunehisa@xxxxxxxxxxxxxx
Date: Mon, 20 Nov 2006 13:08:38 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 19 Nov 2006 20:08:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: Your message of Mon, 20 Nov 2006 11:26:31 +0900. <20061120022631.GB2509%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20061102103405.GA17534%yamahata@xxxxxxxxxxxxx> <200611200130.kAK1UuF02363@xxxxxxxxxxxxxxxxxxxxxxxxxxx><20061120022631.GB2509%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
You (yamahata) said:
>>   We have studied it. So, we think that we can't realize to defer
>> p2m table destruction with the convension. Thus, we'll take anothor
>> approach to avoid the hypervisor hang. Basicaly, we'll introduce a
>> reference count of p2m table like page struct.
> 
> Why do you think so?
> I believe that it is possible without such a reference count.

  At first, we think that we can't realize to defer p2m table destruction
because the convention requires that p2m table exists while page struct
exists.

  About p2m table reference count, we tried to implement to check
as if d->arch.mm.pgd is NULL, at first. But, we can't protect to
access the table during p2m table destruction, it might start to
travese p2m table directory structure.

  Next, we considered to check domain dying before p2m table access.
But the solution requires that domain_kill has to wait for complesion
of p2m table access at test_and_set_bit().

  Therefore, we think to introduce the reference count.

Thanks,
- Tsunehisa Doi


  

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