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

Re: [Xen-devel] [PATCH 3/5] svm: implement instruction fetch part of DecodeAssist


  • To: Andre Przywara <andre.przywara@xxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Mon, 18 Apr 2011 10:10:46 +0100
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 18 Apr 2011 02:11:48 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=g8cmxPFiW+wxb9rHrAdqcfP7svjeIrgoz5sjP4wr45hHKqWSpMdvS+G2n22O1+hOAf EUhCvOI5y4wWYmMSPv2vgkRuwNZJ+om2RFeIf8yd7rrot61TNcZBPBkorO5Gzi3aYEPi J3FjmxqQsjcrotQEAq2rbdR01DHzyC/DrxQS8=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acv9qIBbBdQ6xhk1A0Sm0W7hh6KGIQ==
  • Thread-topic: [Xen-devel] [PATCH 3/5] svm: implement instruction fetch part of DecodeAssist

On 15/04/2011 13:22, "Andre Przywara" <andre.przywara@xxxxxxx> wrote:

> Newer SVM implementations (Bulldozer) copy up to 15 bytes from the
> instruction stream into the VMCB when a #PF or #NPF exception is
> intercepted. This patch makes use of this information if available.
> This saves us from a) traversing the guest's page tables, b) mapping
> the guest's memory and c) copy the instructions from there into the
> hypervisor's address space.
> This speeds up #NPF intercepts quite a lot and avoids cache and TLB
> trashing.

This is a bit skanky. I'll have a think about a neater way of doing it.

 -- Keir

> Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
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®.