summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/vmmmgr.H
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-08-11 00:17:29 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-08-16 08:11:55 -0500
commit82fa7a749fbd1d8f17891dbd97b17a3bdae36c53 (patch)
tree5e4857f1fc30e6b9506ac4973f597f17c8b16738 /src/include/kernel/vmmmgr.H
parentab9e15e2e44eb52d4d0aa3602498a62db0cc0c37 (diff)
downloadtalos-hostboot-82fa7a749fbd1d8f17891dbd97b17a3bdae36c53.tar.gz
talos-hostboot-82fa7a749fbd1d8f17891dbd97b17a3bdae36c53.zip
Implement Kernel->User-space message bridge.
Change-Id: Icf6fc9e10b1c39e981dddf180607b710c597112b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/249 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/vmmmgr.H')
-rw-r--r--src/include/kernel/vmmmgr.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/kernel/vmmmgr.H b/src/include/kernel/vmmmgr.H
index 7c8c63c22..4fc112f09 100644
--- a/src/include/kernel/vmmmgr.H
+++ b/src/include/kernel/vmmmgr.H
@@ -84,6 +84,13 @@ class VmmManager
VmmManager();
~VmmManager() {};
+ /** @brief Get spinlock for memory subsystem.
+ * This is useful for passing to a deferred user-space message
+ * handler so that the subsystem code is SMP-safe when the message
+ * response is obtained.
+ */
+ static Spinlock* getLock();
+
private:
Spinlock lock;
@@ -92,6 +99,9 @@ class VmmManager
bool _pteMiss(task_t*, uint64_t);
+ public:
+ friend class Block;
+
};
#endif
OpenPOWER on IntegriCloud