|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/mm: reunite nestedp2m_lock with its comment.
commit 0d2879062076329038860f873dcbeb6f55bd4917
Author: Tim Deegan <tim@xxxxxxx>
AuthorDate: Thu Jan 15 17:49:48 2015 +0000
Commit: Tim Deegan <tim@xxxxxxx>
CommitDate: Thu Jan 15 17:51:21 2015 +0000
x86/mm: reunite nestedp2m_lock with its comment.
Signed-off-by: Tim Deegan <tim@xxxxxxx>
---
xen/arch/x86/mm/mm-locks.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/xen/arch/x86/mm/mm-locks.h b/xen/arch/x86/mm/mm-locks.h
index 769f7bc..b4f035e 100644
--- a/xen/arch/x86/mm/mm-locks.h
+++ b/xen/arch/x86/mm/mm-locks.h
@@ -205,6 +205,14 @@ static inline void mm_enforce_order_unlock(int
unlock_level,
* *
************************************************************************/
+/* Nested P2M lock (per-domain)
+ *
+ * A per-domain lock that protects the mapping from nested-CR3 to
+ * nested-p2m. In particular it covers:
+ * - the array of nested-p2m tables, and all LRU activity therein; and
+ * - setting the "cr3" field of any p2m table to a non-P2M_BASE_EAADR value.
+ * (i.e. assigning a p2m table to be the shadow of that cr3 */
+
declare_mm_lock(nestedp2m)
#define nestedp2m_lock(d) mm_lock(nestedp2m, &(d)->arch.nested_p2m_lock)
#define nestedp2m_unlock(d) mm_unlock(&(d)->arch.nested_p2m_lock)
@@ -244,14 +252,6 @@ declare_mm_order_constraint(per_page_sharing)
mm_enforce_order_lock_post_per_page_sharing((l), (r))
#define page_sharing_mm_unlock(l, r) mm_enforce_order_unlock((l), (r))
-/* Nested P2M lock (per-domain)
- *
- * A per-domain lock that protects the mapping from nested-CR3 to
- * nested-p2m. In particular it covers:
- * - the array of nested-p2m tables, and all LRU activity therein; and
- * - setting the "cr3" field of any p2m table to a non-P2M_BASE_EAADR value.
- * (i.e. assigning a p2m table to be the shadow of that cr3 */
-
/* PoD lock (per-p2m-table)
*
* Protects private PoD data structs: entry and cache
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |