[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
- 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=
- 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