x86/mem_sharing: move mem_sharing_domain declaration
authorTamas K Lengyel <tamas@tklengyel.com>
Wed, 18 Mar 2020 15:31:06 +0000 (09:31 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Mar 2020 19:53:26 +0000 (19:53 +0000)
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>
xen/include/asm-x86/hvm/domain.h
xen/include/asm-x86/mem_sharing.h

index 624a67d0dddb169e8647f154b5bac6d4b376800b..95fe18cddc4a0d6be50825e057eedbd4d04066b0 100644 (file)
@@ -64,6 +64,19 @@ struct hvm_ioreq_server {
     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).
index 53760a289617ebc9fe24d375640dd4ab5e573fe7..53b7929d0ea358126b5e40c07507ad5965537f68 100644 (file)
 
 #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? */