x86/mem_sharing: move mem_sharing_domain declaration
PATCH 1/1 x86/mem_sharing: move mem_sharing_domain declaration
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 <[email protected]>
--- xen/include/asm-x86/hvm/domain.h | 13 +++++++++++++ xen/include/asm-x86/mem_sharing.h | 11 ----------- 2 files changed, 13 insertions(+), 11 deletions(-)
xen/include/asm-x86/hvm/domain.h +13 -0
@@ -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).
xen/include/asm-x86/mem_sharing.h +0 -11
@@ -26,17 +26,6 @@#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? */
Signature · 7 lines
2.20.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Tamas K Lengyel
Due to recent reshuffling of header include paths
mem_sharingno longer compiles. Fix it by movingmem_sharing_domaindeclaration to location it is used in.Signed-off-by Tamas K Lengyel <[email protected]>
Acked-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel