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

[Xen-changelog] [xen-unstable] [XEN] Init pae_l3_cache lock earlier



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Node ID a89599a12d4bf27e224135f0fe7c670526803a42
# Parent  5a21379d087969aee9c573e5cc1571a285fc69ab
[XEN] Init pae_l3_cache lock earlier
In particular, before hvm_vcpu_initialise causes a CR3 update.
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
---
 xen/arch/x86/domain.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 5a21379d0879 -r a89599a12d4b xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Thu Dec 07 11:47:10 2006 +0000
+++ b/xen/arch/x86/domain.c     Thu Dec 07 13:14:44 2006 +0000
@@ -134,6 +134,8 @@ int vcpu_initialise(struct vcpu *v)
 
     v->arch.flags = TF_kernel_mode;
 
+    pae_l3_cache_init(&v->arch.pae_l3_cache);
+
     if ( is_hvm_domain(d) )
     {
         if ( (rc = hvm_vcpu_initialise(v)) != 0 )
@@ -154,8 +156,6 @@ int vcpu_initialise(struct vcpu *v)
 
     v->arch.perdomain_ptes =
         d->arch.mm_perdomain_pt + (v->vcpu_id << GDT_LDT_VCPU_SHIFT);
-
-    pae_l3_cache_init(&v->arch.pae_l3_cache);
 
     return 0;
 }

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