[RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-25 Thread Stanislav Kinsburskii
This patch introduces a memory allocator specifically tailored for persistent memory within the kernel. The allocator maintains kernel-specific states like DMA passthrough device states, IOMMU state, and more across kexec. The current implementation provides a foundation for custom solutions that

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-26 Thread Baoquan He
Hi Stanislav, On 09/25/23 at 02:27pm, Stanislav Kinsburskii wrote: > This patch introduces a memory allocator specifically tailored for > persistent memory within the kernel. The allocator maintains > kernel-specific states like DMA passthrough device states, IOMMU state, and > more across kexec.

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-27 Thread Stanislav Kinsburskii
On Wed, Sep 27, 2023 at 01:44:38PM +0800, Baoquan He wrote: > Hi Stanislav, > > On 09/25/23 at 02:27pm, Stanislav Kinsburskii wrote: > > This patch introduces a memory allocator specifically tailored for > > persistent memory within the kernel. The allocator maintains > > kernel-specific states li

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Baoquan He
On 09/27/23 at 09:13am, Stanislav Kinsburskii wrote: > On Wed, Sep 27, 2023 at 01:44:38PM +0800, Baoquan He wrote: > > Hi Stanislav, > > > > On 09/25/23 at 02:27pm, Stanislav Kinsburskii wrote: > > > This patch introduces a memory allocator specifically tailored for > > > persistent memory within

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Dave Hansen
On 9/27/23 09:13, Stanislav Kinsburskii wrote: > Once deposited, these pages can't be accessed by Linux anymore and thus > must be preserved in "used" state across kexec, as hypervisor state is > unware of kexec. If Linux can't access them, they're not RAM any more. I'd much rather remove them fr

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Thu, Sep 28, 2023 at 06:25:44PM +0800, Baoquan He wrote: > On 09/27/23 at 09:13am, Stanislav Kinsburskii wrote: > > On Wed, Sep 27, 2023 at 01:44:38PM +0800, Baoquan He wrote: > > > Hi Stanislav, > > > > > > On 09/25/23 at 02:27pm, Stanislav Kinsburskii wrote: > > > > This patch introduces a me

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Thu, Sep 28, 2023 at 06:22:54AM -0700, Dave Hansen wrote: > On 9/27/23 09:13, Stanislav Kinsburskii wrote: > > Once deposited, these pages can't be accessed by Linux anymore and thus > > must be preserved in "used" state across kexec, as hypervisor state is > > unware of kexec. > > If Linux can

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread David Hildenbrand
On 28.09.23 12:25, Baoquan He wrote: On 09/27/23 at 09:13am, Stanislav Kinsburskii wrote: On Wed, Sep 27, 2023 at 01:44:38PM +0800, Baoquan He wrote: Hi Stanislav, On 09/25/23 at 02:27pm, Stanislav Kinsburskii wrote: This patch introduces a memory allocator specifically tailored for persisten

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Dave Hansen
On 9/27/23 16:25, Stanislav Kinsburskii wrote: > On Thu, Sep 28, 2023 at 06:22:54AM -0700, Dave Hansen wrote: >> On 9/27/23 09:13, Stanislav Kinsburskii wrote: >>> Once deposited, these pages can't be accessed by Linux anymore and thus >>> must be preserved in "used" state across kexec, as hypervis

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread David Hildenbrand
On 28.09.23 15:22, Dave Hansen wrote: On 9/27/23 09:13, Stanislav Kinsburskii wrote: Once deposited, these pages can't be accessed by Linux anymore and thus must be preserved in "used" state across kexec, as hypervisor state is unware of kexec. If Linux can't access them, they're not RAM any m

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Dave Hansen
On 9/28/23 10:35, David Hildenbrand wrote: > On 28.09.23 15:22, Dave Hansen wrote: >> On 9/27/23 09:13, Stanislav Kinsburskii wrote: >>> Once deposited, these pages can't be accessed by Linux anymore and thus >>> must be preserved in "used" state across kexec, as hypervisor state is >>> unware of k

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Thu, Sep 28, 2023 at 10:29:32AM -0700, Dave Hansen wrote: > On 9/27/23 16:25, Stanislav Kinsburskii wrote: > > On Thu, Sep 28, 2023 at 06:22:54AM -0700, Dave Hansen wrote: > >> On 9/27/23 09:13, Stanislav Kinsburskii wrote: > >>> Once deposited, these pages can't be accessed by Linux anymore and

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Dave Hansen
On 9/27/23 17:02, Stanislav Kinsburskii wrote: > On Thu, Sep 28, 2023 at 10:29:32AM -0700, Dave Hansen wrote: ... > Well, not exactly. That's something I'd like to have indeed, but from my > POV this goal is out of scope of discussion at the moment. > Let me try to express it the same way you did a

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Thu, Sep 28, 2023 at 11:00:12AM -0700, Dave Hansen wrote: > On 9/27/23 17:02, Stanislav Kinsburskii wrote: > > On Thu, Sep 28, 2023 at 10:29:32AM -0700, Dave Hansen wrote: > ... > > Well, not exactly. That's something I'd like to have indeed, but from my > > POV this goal is out of scope of disc

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Dave Hansen
On 9/27/23 17:38, Stanislav Kinsburskii wrote: > On Thu, Sep 28, 2023 at 11:00:12AM -0700, Dave Hansen wrote: >> On 9/27/23 17:02, Stanislav Kinsburskii wrote: >>> On Thu, Sep 28, 2023 at 10:29:32AM -0700, Dave Hansen wrote: >> ... >>> Well, not exactly. That's something I'd like to have indeed, bu

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Thu, Sep 28, 2023 at 12:16:31PM -0700, Dave Hansen wrote: > On 9/27/23 17:38, Stanislav Kinsburskii wrote: > > On Thu, Sep 28, 2023 at 11:00:12AM -0700, Dave Hansen wrote: > >> On 9/27/23 17:02, Stanislav Kinsburskii wrote: > >>> On Thu, Sep 28, 2023 at 10:29:32AM -0700, Dave Hansen wrote: > >>

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Baoquan He
On 09/27/23 at 07:46pm, Stanislav Kinsburskii wrote: > On Thu, Sep 28, 2023 at 12:16:31PM -0700, Dave Hansen wrote: > > On 9/27/23 17:38, Stanislav Kinsburskii wrote: > > > On Thu, Sep 28, 2023 at 11:00:12AM -0700, Dave Hansen wrote: > > >> On 9/27/23 17:02, Stanislav Kinsburskii wrote: > > >>> On

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread Stanislav Kinsburskii
On Fri, Sep 29, 2023 at 07:56:37AM +0800, Baoquan He wrote: > On 09/27/23 at 07:46pm, Stanislav Kinsburskii wrote: > > On Thu, Sep 28, 2023 at 12:16:31PM -0700, Dave Hansen wrote: > > > On 9/27/23 17:38, Stanislav Kinsburskii wrote: > > > > On Thu, Sep 28, 2023 at 11:00:12AM -0700, Dave Hansen wrot

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-29 Thread Shutemov, Kirill
On Wed, Sep 27, 2023 at 07:46:36PM -0700, Stanislav Kinsburskii wrote: > I'd answer yes, "System MAP" must be persisted across kexec. > Could you elaborate on why there should be a mechanism to tell the > kernel anything special about the existent "System map" in this context? > Say, one can reserv

Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-29 Thread Stanislav Kinsburskii
On Fri, Sep 29, 2023 at 01:13:24PM +0300, Shutemov, Kirill wrote: > On Wed, Sep 27, 2023 at 07:46:36PM -0700, Stanislav Kinsburskii wrote: > > I'd answer yes, "System MAP" must be persisted across kexec. > > Could you elaborate on why there should be a mechanism to tell the > > kernel anything spec

RE: [EXTERNAL] Re: [RFC PATCH v2 0/7] Introduce persistent memory pool

2023-09-28 Thread KY Srinivasan
ndation.org; g...@amazon.de; > pbonz...@redhat.com > Subject: [EXTERNAL] Re: [RFC PATCH v2 0/7] Introduce persistent memory pool > > On 9/28/23 10:35, David Hildenbrand wrote: > > On 28.09.23 15:22, Dave Hansen wrote: > >> On 9/27/23 09:13, Stanislav Kinsburskii wrot