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 3/5] svm: implement instruction fetch part of Dec

To: Andre Przywara <andre.przywara@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH 3/5] svm: implement instruction fetch part of DecodeAssist
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
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:cc :message-id:thread-topic:thread-index:in-reply-to:mime-version :content-type:content-transfer-encoding; bh=EU/jg0GQW/1vpDUWQPzlVSvneOL84+hpQnb/+xVvCQE=; b=Pw4ct1Dk9tFjwHVFf2PZfFYiv7oRJUmrZFo0iTg0w2PNTPX2DTaSfhktjlB6Nd1/ju a8mONQ6r4jdY4kueqko30Vhdyypmqr4KCzi/AJ/Ebocd26A7+x+UjwO7dKXCRFRBGV/9 JL8mDrEp8StHNzEfidFDUDd0KwLuNN8YIzUG4=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DA83889.5060306@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: Acv9qIBbBdQ6xhk1A0Sm0W7hh6KGIQ==
Thread-topic: [Xen-devel] [PATCH 3/5] svm: implement instruction fetch part of DecodeAssist
User-agent: Microsoft-Entourage/12.28.0.101117
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