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

[Xen-changelog] [xen-3.4-testing] x86 svm: Fix PAT MSR handling when using Nested Paging.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1250695492 -3600
# Node ID dc54e755bd8f7f2b08fa37c62718c79591ca1681
# Parent  7409d60f38529486e74d616d56db249d51e0736a
x86 svm: Fix PAT MSR handling when using Nested Paging.

Accesses to the MSR should not be intercepted.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   20052:b3893b54d885
xen-unstable date:        Wed Aug 12 14:13:54 2009 +0100
---
 xen/arch/x86/hvm/svm/vmcb.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 7409d60f3852 -r dc54e755bd8f xen/arch/x86/hvm/svm/vmcb.c
--- a/xen/arch/x86/hvm/svm/vmcb.c       Wed Aug 19 16:05:59 2009 +0100
+++ b/xen/arch/x86/hvm/svm/vmcb.c       Wed Aug 19 16:24:52 2009 +0100
@@ -241,6 +241,9 @@ static int construct_vmcb(struct vcpu *v
          * that need to be fixed up.
          */
         vmcb->general1_intercepts &= ~GENERAL1_INTERCEPT_INVLPG;
+
+        /* PAT is under complete control of SVM when using nested paging. */
+        svm_disable_intercept_for_msr(v, MSR_IA32_CR_PAT);
     }
     else
     {

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