Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-22 Thread Roger Pau Monné
On Mon, Sep 21, 2020 at 05:49:45PM +0200, Jan Beulich wrote: > On 21.09.2020 17:35, Roger Pau Monné wrote: > > On Mon, Sep 21, 2020 at 04:22:26PM +0200, Jan Beulich wrote: > >> On 10.09.2020 15:35, Roger Pau Monne wrote: > >>> arch_init_memory will treat all the gaps on the physical memory map > >>

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-21 Thread Roger Pau Monné
On Mon, Sep 21, 2020 at 04:22:26PM +0200, Jan Beulich wrote: > On 10.09.2020 15:35, Roger Pau Monne wrote: > > arch_init_memory will treat all the gaps on the physical memory map > > between RAM regions as MMIO and use share_xen_page_with_guest in order > > to assign them to dom_io. This has the si

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-21 Thread Jan Beulich
On 21.09.2020 17:35, Roger Pau Monné wrote: > On Mon, Sep 21, 2020 at 04:22:26PM +0200, Jan Beulich wrote: >> On 10.09.2020 15:35, Roger Pau Monne wrote: >>> arch_init_memory will treat all the gaps on the physical memory map >>> between RAM regions as MMIO and use share_xen_page_with_guest in orde

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-21 Thread Jan Beulich
On 10.09.2020 15:35, Roger Pau Monne wrote: > arch_init_memory will treat all the gaps on the physical memory map > between RAM regions as MMIO and use share_xen_page_with_guest in order > to assign them to dom_io. This has the side effect of setting the Xen > heap flag on such pages, and thus is_s

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-17 Thread Roger Pau Monné
On Thu, Sep 17, 2020 at 04:12:23PM +0200, Jan Beulich wrote: > On 10.09.2020 15:35, Roger Pau Monne wrote: > > arch_init_memory will treat all the gaps on the physical memory map > > between RAM regions as MMIO and use share_xen_page_with_guest in order > > to assign them to dom_io. This has the si

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-17 Thread Jan Beulich
On 17.09.2020 16:28, Roger Pau Monné wrote: > On Thu, Sep 17, 2020 at 04:12:23PM +0200, Jan Beulich wrote: >> On 10.09.2020 15:35, Roger Pau Monne wrote: >>> arch_init_memory will treat all the gaps on the physical memory map >>> between RAM regions as MMIO and use share_xen_page_with_guest in orde

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-17 Thread Jan Beulich
On 10.09.2020 15:35, Roger Pau Monne wrote: > arch_init_memory will treat all the gaps on the physical memory map > between RAM regions as MMIO and use share_xen_page_with_guest in order > to assign them to dom_io. This has the side effect of setting the Xen > heap flag on such pages, and thus is_s

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-11 Thread Jan Beulich
On 10.09.2020 16:41, Jan Beulich wrote: > On 10.09.2020 15:35, Roger Pau Monne wrote: >> arch_init_memory will treat all the gaps on the physical memory map >> between RAM regions as MMIO and use share_xen_page_with_guest in order >> to assign them to dom_io. This has the side effect of setting the

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Jan Beulich
On 10.09.2020 19:27, Roger Pau Monné wrote: > On Thu, Sep 10, 2020 at 04:41:41PM +0200, Jan Beulich wrote: >> On 10.09.2020 15:35, Roger Pau Monne wrote: >>> --- a/xen/arch/x86/mm.c >>> +++ b/xen/arch/x86/mm.c >>> @@ -271,6 +271,18 @@ static l4_pgentry_t __read_mostly split_l4e; >>> #define root_p

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Roger Pau Monné
On Thu, Sep 10, 2020 at 04:41:41PM +0200, Jan Beulich wrote: > On 10.09.2020 15:35, Roger Pau Monne wrote: > > arch_init_memory will treat all the gaps on the physical memory map > > between RAM regions as MMIO and use share_xen_page_with_guest in order > > to assign them to dom_io. This has the si

[PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Roger Pau Monne
arch_init_memory will treat all the gaps on the physical memory map between RAM regions as MMIO and use share_xen_page_with_guest in order to assign them to dom_io. This has the side effect of setting the Xen heap flag on such pages, and thus is_special_page would then return true which is an issue

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Jan Beulich
On 10.09.2020 15:35, Roger Pau Monne wrote: > arch_init_memory will treat all the gaps on the physical memory map > between RAM regions as MMIO and use share_xen_page_with_guest in order > to assign them to dom_io. This has the side effect of setting the Xen > heap flag on such pages, and thus is_s

Re: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Jan Beulich
On 10.09.2020 16:23, Paul Durrant wrote: >> From: Roger Pau Monne >> Sent: 10 September 2020 14:35 >> >> @@ -291,7 +303,7 @@ void __init arch_init_memory(void) >> */ >> BUG_ON(pvh_boot && trampoline_phys != 0x1000); >> for ( i = 0; i < 0x100; i++ ) >> -share_xen_page_with_g

RE: [PATCH] x86/mm: do not mark IO regions as Xen heap

2020-09-10 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 10 September 2020 14:35 > To: xen-devel@lists.xenproject.org > Cc: Roger Pau Monne ; Jan Beulich ; > Andrew Cooper > ; Wei Liu ; Paul Durrant > > Subject: [PATCH] x86/mm: do not mark IO regions as Xen heap