>>> On 02.11.18 at 18:54, <andrew.coop...@citrix.com> 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@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel