Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Jan Beulich
On 02.07.2025 14:34, Oleksii Kurochko wrote: > > On 7/2/25 1:56 PM, Jan Beulich wrote: >> On 02.07.2025 13:48, Oleksii Kurochko wrote: >>> On 7/1/25 3:04 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: > @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) > >>>

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Oleksii Kurochko
On 7/2/25 1:56 PM, Jan Beulich wrote: On 02.07.2025 13:48, Oleksii Kurochko wrote: On 7/1/25 3:04 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) return 0; } + +/* + * Set the pool of pages to the required

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Jan Beulich
On 02.07.2025 13:48, Oleksii Kurochko wrote: > On 7/1/25 3:04 PM, Jan Beulich wrote: >> On 10.06.2025 15:05, Oleksii Kurochko wrote: >>> @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) >>> >>> return 0; >>> } >>> + >>> +/* >>> + * Set the pool of pages to the required number of pages

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Oleksii Kurochko
On 7/1/25 3:04 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) return 0; } + +/* + * Set the pool of pages to the required number of pages. + * Returns 0 for success, non-zero for failure. + * Call with d->arch.

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Oleksii Kurochko
On 7/2/25 12:34 PM, Jan Beulich wrote: On 02.07.2025 12:30, Oleksii Kurochko wrote: On 7/1/25 3:04 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) return 0; } + +/* + * Set the pool of pages to the required

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Jan Beulich
On 02.07.2025 12:30, Oleksii Kurochko wrote: > > On 7/1/25 3:04 PM, Jan Beulich wrote: >> On 10.06.2025 15:05, Oleksii Kurochko wrote: >>> @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) >>> >>> return 0; >>> } >>> + >>> +/* >>> + * Set the pool of pages to the required number of pa

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-02 Thread Oleksii Kurochko
On 7/1/25 3:04 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) return 0; } + +/* + * Set the pool of pages to the required number of pages. + * Returns 0 for success, non-zero for failure. + * Call with d->arch.

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-07-01 Thread Jan Beulich
On 10.06.2025 15:05, Oleksii Kurochko wrote: > @@ -113,3 +117,58 @@ int p2m_init(struct domain *d) > > return 0; > } > + > +/* > + * Set the pool of pages to the required number of pages. > + * Returns 0 for success, non-zero for failure. > + * Call with d->arch.paging.lock held. > + */ > +

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-06-25 Thread Oleksii Kurochko
On 6/18/25 5:53 PM, Jan Beulich wrote: On 10.06.2025 15:05, Oleksii Kurochko wrote: @@ -18,10 +20,20 @@ struct arch_vcpu_io { struct arch_vcpu { }; +struct paging_domain { +spinlock_t lock; +/* Free P2M pages from the pre-allocated P2M pool */ +struct page_list_head p2m_free

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-06-25 Thread Jan Beulich
On 25.06.2025 16:48, Oleksii Kurochko wrote: > > On 6/18/25 5:53 PM, Jan Beulich wrote: >> On 10.06.2025 15:05, Oleksii Kurochko wrote: >>> @@ -18,10 +20,20 @@ struct arch_vcpu_io { >>> struct arch_vcpu { >>> }; >>> >>> +struct paging_domain { >>> +spinlock_t lock; >>> +/* Free P2M

Re: [PATCH v2 04/17] xen/riscv: construct the P2M pages pool for guests

2025-06-18 Thread Jan Beulich
On 10.06.2025 15:05, Oleksii Kurochko wrote: > @@ -18,10 +20,20 @@ struct arch_vcpu_io { > struct arch_vcpu { > }; > > +struct paging_domain { > +spinlock_t lock; > +/* Free P2M pages from the pre-allocated P2M pool */ > +struct page_list_head p2m_freelist; > +/* Number of pages