* Data structures for FileIOAligned_* functions; only used on
* hosted (see fileInt.h for rationale).
*/
-#ifndef VMX86_SERVER
+#if !defined(VMX86_TOOLS) && !defined(VMX86_SERVER)
#define ALIGNEDPOOL_FREELIST_SIZE 30
#define ALIGNEDPOOL_BUFSZ (1024 * 1024)
#define ALIGNEDPOOL_OLD_AGE ((VmTimeType)1000 * 1000 * 1000) /* nanoseconds */
* The FileIOAligned_* functions are only used on
* hosted (see fileInt.h for rationale).
*/
-#ifndef VMX86_SERVER
+#if !defined(VMX86_TOOLS) && !defined(VMX86_SERVER)
/*
*---------------------------------------------------------------------------
* 2. we don't want to do extra large allocations
* 3. we don't have the same alignment constraints
* so simply define it away to nothing.
+ *
+ * Tools is another case, we can use this path for IO but we don't want to add
+ * MXUserExclLock dependencies.
*/
-#ifdef VMX86_SERVER
+#if defined(VMX86_TOOLS) || defined(VMX86_SERVER)
#define FileIOAligned_PoolInit() /* nothing */
#define FileIOAligned_PoolExit() /* nothing */
#define FileIOAligned_PoolMalloc(sz) NULL