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

Re: [Xen-devel] [PATCH] x86/mm: disallow mmu hypercalls for a dying doma

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86/mm: disallow mmu hypercalls for a dying domain
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Fri, 27 Nov 2009 18:10:10 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 27 Nov 2009 01:10:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C7353987.2E3B%keir.fraser@xxxxxxxxxxxxx>
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>
References: <7kocmoxz9p.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx> <C7353987.2E3B%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I observed that dom0 kept on issuing a mmu_update hypercall while the
domain is dying. So I don't feel happy with it. 
But I'm ok if the patch is dropped.

Thanks,
Kouya

Keir Fraser writes:
> Since the check is made with no locks held, I don't think any race can be
> completely avoided here. I'm not sure the performance argument holds much
> water either -- this just looks like a pointless extra check.
> 
>  -- Keir
> 
> On 27/11/2009 06:22, "Kouya Shimura" <kouya@xxxxxxxxxxxxxx> wrote:
> 
> > The race condition should be avoided for efficiency.
> > 
> > Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
> > 
> 

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