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

[Xen-changelog] Drop shadow lock on exit



# HG changeset patch
# User adsharma@xxxxxxxxxxxxxxxxxxxx
# Node ID f36aee6f8902a484e030912bf6b2f60ea6dabd9d
# Parent  44e70a3d6b4c6eb69c1b837d6629cbfd06852ed0
Drop shadow lock on exit

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

diff -r 44e70a3d6b4c -r f36aee6f8902 xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c     Wed Aug 17 19:21:37 2005
+++ b/xen/arch/x86/shadow.c     Wed Aug 17 19:22:31 2005
@@ -671,6 +671,7 @@
                          sizeof(gpte))) {*/
     if (unlikely(!__guest_get_l1e(v, va, &gpte))) {
         perfc_incrc(shadow_invlpg_faults);
+        shadow_unlock(d);
         return;
     }
     l1pte_propagate_from_guest(d, gpte, &spte);
diff -r 44e70a3d6b4c -r f36aee6f8902 xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c   Wed Aug 17 19:21:37 2005
+++ b/xen/arch/x86/shadow32.c   Wed Aug 17 19:22:31 2005
@@ -1685,6 +1685,7 @@
     if (__copy_from_user(&gpte, &linear_pg_table[va >> PAGE_SHIFT],
                          sizeof(gpte))) {
         perfc_incrc(shadow_invlpg_faults);
+        shadow_unlock(d);
         return;
     }
     l1pte_propagate_from_guest(d, gpte, &spte);

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