[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v5 1/5] x86/mem_access: put p2m_{get/set}_suppress_ve under CONFIG_HVM



On 9/21/18 6:54 PM, Wei Liu wrote:
> They are used by HVM code only.
> 
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> ---
> v5: new
> ---
>  xen/arch/x86/mm/mem_access.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/xen/arch/x86/mm/mem_access.c b/xen/arch/x86/mm/mem_access.c
> index 2217bda..826c35f 100644
> --- a/xen/arch/x86/mm/mem_access.c
> +++ b/xen/arch/x86/mm/mem_access.c
> @@ -501,6 +501,7 @@ void arch_p2m_set_access_required(struct domain *d, bool 
> access_required)
>      }
>  }
>  
> +#ifdef CONFIG_HVM
>  /*
>   * Set/clear the #VE suppress bit for a page.  Only available on VMX.
>   */
> @@ -600,6 +601,7 @@ int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool 
> *suppress_ve,
>  
>      return 0;
>  }
> +#endif
>  
>  /*
>   * Local variables:

Hello Wei,

I am working on moving these functions to p2m.c (but waiting for
George's reply on the VMX #VE checks), so if you'd like - and feel
that's appropriate - I can also put that code under CONFIG_HVM in the
cleanup patch. Is that something you'd be interested in?

Otherwise, Acked-by: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>, and
I'll move the new code as well.


Thanks,
Razvan

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.