On 08.01.2020 18:14, Tamas K Lengyel wrote:
> Create struct mem_sharing_domain under hvm_domain and move mem sharing
> variables into it from p2m_domain and hvm_domain.
> 
> Expose the mem_sharing_enabled macro to be used consistently across Xen.
> 
> Remove some duplicate calls to mem_sharing_enabled in mem_sharing.c
> 
> Signed-off-by: Tamas K Lengyel <tamas.leng...@intel.com>

Acked-by: Jan Beulich <jbeul...@suse.com>
with one question:

> @@ -192,6 +192,10 @@ struct hvm_domain {
>          struct vmx_domain vmx;
>          struct svm_domain svm;
>      };
> +
> +#ifdef CONFIG_MEM_SHARING
> +    struct mem_sharing_domain mem_sharing;
> +#endif

Are you intending to add fields to this new struct? If so,
should the field here become a pointer, and the structure
allocated only when actually needed?

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to