Due to recent reshuffling of header include paths mem_sharing no longer
compiles. Fix it by moving mem_sharing_domain declaration to location it
is used in.
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
uint8_t bufioreq_handling;
};
+#ifdef CONFIG_MEM_SHARING
+struct mem_sharing_domain
+{
+ bool enabled;
+
+ /*
+ * When releasing shared gfn's in a preemptible manner, recall where
+ * to resume the search.
+ */
+ unsigned long next_shared_gfn_to_relinquish;
+};
+#endif
+
/*
* This structure defines function hooks to support hardware-assisted
* virtual interrupt delivery to guest. (e.g. VMX PI and SVM AVIC).
#ifdef CONFIG_MEM_SHARING
-struct mem_sharing_domain
-{
- bool enabled;
-
- /*
- * When releasing shared gfn's in a preemptible manner, recall where
- * to resume the search.
- */
- unsigned long next_shared_gfn_to_relinquish;
-};
-
#define mem_sharing_enabled(d) ((d)->arch.hvm.mem_sharing.enabled)
/* Auditing of memory sharing code? */