Re: [Xen-devel] [PATCH 1/3] x86/dom0: Avoid using 1G superpages if shadowing may be necessary

2018-11-12 Thread Andrew Cooper
On 12/11/2018 10:05, Jan Beulich wrote: On 09.11.18 at 16:26, wrote: >> The shadow code doesn't support 1G superpages, and will hand #PF[RSVD] back >> to >> guests. > So this change is then instead of trying to make shadow code cope? At the moment, that is an unknown quantity of work.  Idea

Re: [Xen-devel] [PATCH 1/3] x86/dom0: Avoid using 1G superpages if shadowing may be necessary

2018-11-12 Thread Jan Beulich
>>> On 09.11.18 at 16:26, wrote: > The shadow code doesn't support 1G superpages, and will hand #PF[RSVD] back to > guests. So this change is then instead of trying to make shadow code cope? > --- a/xen/arch/x86/pv/dom0_build.c > +++ b/xen/arch/x86/pv/dom0_build.c > @@ -148,7 +148,14 @@ static _

[Xen-devel] [PATCH 1/3] x86/dom0: Avoid using 1G superpages if shadowing may be necessary

2018-11-09 Thread Andrew Cooper
The shadow code doesn't support 1G superpages, and will hand #PF[RSVD] back to guests. For dom0's with 512GB of RAM or more (and subject to the P2M alignment), Xen's domain builder might use 1G superpages. Avoid using 1G superpages (falling back to 2M superpages instead) if there is a reasonable