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

Re: [Xen-devel] [PATCH] x86/vcpu: Remove struct vcpu allocation restriction for !CONFIG_SHADOW_PAGING



>>> On 02.11.18 at 18:54, <andrew.cooper3@xxxxxxxxxx> wrote:
> --- a/xen/arch/x86/domain.c
> +++ b/xen/arch/x86/domain.c
> @@ -311,8 +311,11 @@ struct vcpu *alloc_vcpu_struct(void)
>       * may require that the shadow CR3 points below 4GB, and hence the whole
>       * structure must satisfy this restriction. Thus we specify 
> MEMF_bits(32).
>       */
> +    unsigned int memflags =
> +        IS_ENABLED(CONFIG_SHADOW_PAGING) ? MEMF_bits(32) : 0;

According to the comment, CONFIG_HVM (or perhaps even
is_hvm_domain(), if only the corresponding struct domain was
available here) could be taken into consideration at the same
time.

Jan



_______________________________________________
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®.