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-changelog

[Xen-changelog] [xen-unstable] x86 svm: Fix PAT MSR handling when using

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86 svm: Fix PAT MSR handling when using Nested Paging.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Aug 2009 07:45:32 -0700
Delivery-date: Wed, 12 Aug 2009 07:46:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1250082834 -3600
# Node ID b3893b54d88533950ad72c32991e3f2cde05f89b
# Parent  481f730c944622ca891b1f87ae14c8b1052413cd
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/arch/x86/hvm/svm/vmcb.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 481f730c9446 -r b3893b54d885 xen/arch/x86/hvm/svm/vmcb.c
--- a/xen/arch/x86/hvm/svm/vmcb.c       Wed Aug 12 14:13:00 2009 +0100
+++ b/xen/arch/x86/hvm/svm/vmcb.c       Wed Aug 12 14:13:54 2009 +0100
@@ -243,6 +243,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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86 svm: Fix PAT MSR handling when using Nested Paging., Xen patchbot-unstable <=