Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-14 Thread Luca Fancellu
Hi Julien, > >> Note also that a foreign unmap resulting in a page free is also not >> the common case, as that should only happen when the foreign domain >> has been destroyed, or the page ballooned out, so to benchmark the >> worst case some effort will be needed in order to model this >>

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-13 Thread Roger Pau Monné
On Fri, May 10, 2024 at 10:37:53PM +0100, Julien Grall wrote: > Hi Roger, > > On 09/05/2024 13:58, Roger Pau Monné wrote: > > On Thu, May 09, 2024 at 01:12:00PM +0100, Julien Grall wrote: > > > Hi, > > > > > > On 09/05/2024 12:28, Roger Pau Monné wrote: > > > > OTOH for 1GB given the code here

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-10 Thread Julien Grall
Hi Roger, On 09/05/2024 13:58, Roger Pau Monné wrote: On Thu, May 09, 2024 at 01:12:00PM +0100, Julien Grall wrote: Hi, On 09/05/2024 12:28, Roger Pau Monné wrote: On Thu, May 09, 2024 at 10:50:56AM +0100, Julien Grall wrote: On 09/05/2024 09:13, Roger Pau Monné wrote: On Wed, May 08,

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Roger Pau Monné
On Thu, May 09, 2024 at 01:12:00PM +0100, Julien Grall wrote: > Hi, > > On 09/05/2024 12:28, Roger Pau Monné wrote: > > On Thu, May 09, 2024 at 10:50:56AM +0100, Julien Grall wrote: > > > > > > > > > On 09/05/2024 09:13, Roger Pau Monné wrote: > > > > On Wed, May 08, 2024 at 11:11:04PM +0100,

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Julien Grall
Hi, On 09/05/2024 12:28, Roger Pau Monné wrote: On Thu, May 09, 2024 at 10:50:56AM +0100, Julien Grall wrote: On 09/05/2024 09:13, Roger Pau Monné wrote: On Wed, May 08, 2024 at 11:11:04PM +0100, Julien Grall wrote: Also the interactions with the remote domain would need to be audited, as

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Roger Pau Monné
On Thu, May 09, 2024 at 10:50:56AM +0100, Julien Grall wrote: > > > On 09/05/2024 09:13, Roger Pau Monné wrote: > > On Wed, May 08, 2024 at 11:11:04PM +0100, Julien Grall wrote: > > Also the interactions with the remote domain would need to be audited, > > as the remote domain shattering the

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Julien Grall
On 09/05/2024 09:13, Roger Pau Monné wrote: On Wed, May 08, 2024 at 11:11:04PM +0100, Julien Grall wrote: Hi, CC-ing Roger as he is working on adding support for the foreign mapping on x86. Although, I am not expecting any implication as only 4KB mapping should be supported. I don't think

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Roger Pau Monné
On Wed, May 08, 2024 at 11:11:04PM +0100, Julien Grall wrote: > Hi, > > CC-ing Roger as he is working on adding support for the foreign mapping on > x86. Although, I am not expecting any implication as only 4KB mapping should > be supported. I don't think we have plans on x86 to support foreign

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-09 Thread Roger Pau Monné
On Tue, Apr 23, 2024 at 09:25:28AM +0100, Luca Fancellu wrote: > From: Penny Zheng > > We are doing foreign memory mapping for static shared memory, and > there is a great possibility that it could be super mapped. > But today, p2m_put_l3_page could not handle superpages. > > This commits

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-08 Thread Julien Grall
Hi, CC-ing Roger as he is working on adding support for the foreign mapping on x86. Although, I am not expecting any implication as only 4KB mapping should be supported. On 08/05/2024 22:05, Julien Grall wrote: On 07/05/2024 14:30, Luca Fancellu wrote: On 7 May 2024, at 14:20, Julien Grall

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-08 Thread Julien Grall
On 07/05/2024 14:30, Luca Fancellu wrote: Hi Julien, Hi Luca, On 7 May 2024, at 14:20, Julien Grall wrote: Hi Luca, On 23/04/2024 09:25, Luca Fancellu wrote: From: Penny Zheng We are doing foreign memory mapping for static shared memory, and there is a great possibility that it could

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-07 Thread Luca Fancellu
Hi Julien, > On 7 May 2024, at 14:20, Julien Grall wrote: > > Hi Luca, > > On 23/04/2024 09:25, Luca Fancellu wrote: >> From: Penny Zheng >> We are doing foreign memory mapping for static shared memory, and >> there is a great possibility that it could be super mapped. > > Is this because we

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-07 Thread Julien Grall
Hi Luca, On 23/04/2024 09:25, Luca Fancellu wrote: From: Penny Zheng We are doing foreign memory mapping for static shared memory, and there is a great possibility that it could be super mapped. Is this because we are mapping more than one page at the time? Can you point me to the code?

Re: [PATCH 3/7] xen/p2m: put reference for superpage

2024-05-07 Thread Michal Orzel
Hi Luca, On 23/04/2024 10:25, Luca Fancellu wrote: > > > From: Penny Zheng > > We are doing foreign memory mapping for static shared memory, and > there is a great possibility that it could be super mapped. > But today, p2m_put_l3_page could not handle superpages. > > This commits implements

[PATCH 3/7] xen/p2m: put reference for superpage

2024-04-23 Thread Luca Fancellu
From: Penny Zheng We are doing foreign memory mapping for static shared memory, and there is a great possibility that it could be super mapped. But today, p2m_put_l3_page could not handle superpages. This commits implements a new function p2m_put_superpage to handle superpages, specifically for