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] nestedhvm: ASID emulation

To: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] nestedhvm: ASID emulation
From: Keir Fraser <keir@xxxxxxx>
Date: Wed, 13 Apr 2011 14:27:02 +0100
Cc:
Delivery-date: Wed, 13 Apr 2011 06:28:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:user-agent:date:subject:from:to :message-id:thread-topic:thread-index:in-reply-to:mime-version :content-type:content-transfer-encoding; bh=bBDAxe4k791VYtq83VXJMl2gm93Fn1Ltk+80cx4SYGk=; b=W8vklJx8d28zA/k32rWo3iVxx4JNJH692D8K9rInT0ASsYzZRQ2tYwWImP4Ph34fgs U1JP15Mjxw0+GmDyq1+5PZVmqrdcNWb4PSNSyDN/4P6iGib5mlIs+WJ0J8vj2nEeLlIM OdxG+IaMJ5B3dQo+y7n+P6rsyhV184YCa2/OA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=E8C0YuR2/Zx0LEoFF0tXLJG6YlBrRT7m2aDxgwoHxqtxcy3h1wOnesXv8GReJuXfcQ 7Ljcf/U+zXtHmAv88eIqBklj66CEZHn1QwX7pgm8WvFpD+hB4Xg8O+EYEhqTS22IPYk/ yCIYvYh0WOxVoca4YuOV/5xHdKesUwueSwNc0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DA57CD0.9040704@xxxxxxx>
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
Thread-index: Acv53nkaDhZmMPV3NkSuIecjvTn3jw==
Thread-topic: [Xen-devel] [PATCH] nestedhvm: ASID emulation
User-agent: Microsoft-Entourage/12.28.0.101117
On 13/04/2011 11:37, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

> 
> Implement ASID emulation.
> This allows the l1 guest to run the l2 guest using hw ASID.
> 
> Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>

First, how much of a win is this compared with what we do currently?

Second, the two-asids-per-vcpu allocation scheme in
hvm_asid_handle_vmenter() looks broken. I mean, consider this comment:
  /* When asid generation changed last time when we were
   * were going to run l1 guest then next_asid <= nv->nv_n2asid. */
I don't see how you can assert this to be true. Arbitrary generations can
have passed, and next_asid incremented to an arbitrary value, since the last
time you allocated nv_n2asid.

I wouldn't bother fixing #2 unless there's a convincing answer for #1.

 -- Keir



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