[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] nestedhvm: ASID emulation


  • To: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acv53nkaDhZmMPV3NkSuIecjvTn3jw==
  • Thread-topic: [Xen-devel] [PATCH] nestedhvm: ASID emulation

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.