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

[Xen-changelog] [xen-unstable] nestedsvm: Support Decodeassist



# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1307536771 -3600
# Node ID a1562fc4f5d5de25f4ed65a26c4e11aebe4724c6
# Parent  c231a26a29327aa3c737170e04c738289be2d309
nestedsvm: Support Decodeassist

Offer l1 guest to use decode assist if available in hardware.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---


diff -r c231a26a2932 -r a1562fc4f5d5 tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c        Mon Jun 06 09:56:08 2011 +0100
+++ b/tools/libxc/xc_cpuid_x86.c        Wed Jun 08 13:39:31 2011 +0100
@@ -153,7 +153,8 @@
          * available in hw and which are implemented
          */
         regs[3] &= (SVM_FEATURE_NPT | SVM_FEATURE_LBRV | \
-            SVM_FEATURE_NRIPS | SVM_FEATURE_PAUSEFILTER);
+            SVM_FEATURE_NRIPS | SVM_FEATURE_PAUSEFILTER | \
+            SVM_FEATURE_DECODEASSISTS);
 
         /* Pass 2: Always enable SVM features which are emulated */
         regs[3] |= SVM_FEATURE_VMCBCLEAN;
diff -r c231a26a2932 -r a1562fc4f5d5 xen/arch/x86/hvm/svm/nestedsvm.c
--- a/xen/arch/x86/hvm/svm/nestedsvm.c  Mon Jun 06 09:56:08 2011 +0100
+++ b/xen/arch/x86/hvm/svm/nestedsvm.c  Wed Jun 08 13:39:31 2011 +0100
@@ -1056,6 +1056,10 @@
     /* NextRIP */
     ns_vmcb->nextrip = n2vmcb->nextrip;
 
+    /* Decode Assist */
+    ns_vmcb->guest_ins_len = n2vmcb->guest_ins_len;
+    memcpy(ns_vmcb->guest_ins, n2vmcb->guest_ins, sizeof(ns_vmcb->guest_ins));
+
     /*
      * VMCB Save State Area
      */

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


 


Rackspace

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