pvmfw: Move MemoryTracker to a global variable
Exception handlers that maniplulate memory need access to MemoryTracker. To
prepare for the implementation of such handlers, move the MemoryTracker
into a global variable, and wrap it with a SpinMutex.
Bug: 245267332
Test: atest MicrodroidTestApp
Change-Id: Ib5b16006e25addca991c6c6d7854c9368d60a28b
diff --git a/pvmfw/Android.bp b/pvmfw/Android.bp
index 8be5f7d..2416714 100644
--- a/pvmfw/Android.bp
+++ b/pvmfw/Android.bp
@@ -31,6 +31,7 @@
"libvirtio_drivers",
"libvmbase",
"libzeroize_nostd",
+ "libspin_nostd",
],
}