Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-02-05 Thread Oleksii
On Mon, 2024-02-05 at 15:05 +0100, Jan Beulich wrote: > On 05.02.2024 13:49, Oleksii wrote: > > On Mon, 2024-02-05 at 08:46 +0100, Jan Beulich wrote: > > > On 02.02.2024 18:30, Oleksii wrote: > > > > On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: > > > > > On 22.12.2023 16:13, Oleksii

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-02-05 Thread Jan Beulich
On 05.02.2024 13:49, Oleksii wrote: > On Mon, 2024-02-05 at 08:46 +0100, Jan Beulich wrote: >> On 02.02.2024 18:30, Oleksii wrote: >>> On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: On 22.12.2023 16:13, Oleksii Kurochko wrote: > +/* Convert between Xen-heap virtual addresses and

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-02-05 Thread Oleksii
On Mon, 2024-02-05 at 08:46 +0100, Jan Beulich wrote: > On 02.02.2024 18:30, Oleksii wrote: > > On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: > > > On 22.12.2023 16:13, Oleksii Kurochko wrote: > > > > +/* Convert between Xen-heap virtual addresses and machine > > > > frame > > > > numbers.

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-02-04 Thread Jan Beulich
On 02.02.2024 18:30, Oleksii wrote: > On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: >> On 22.12.2023 16:13, Oleksii Kurochko wrote: >>> +/* Convert between Xen-heap virtual addresses and machine frame >>> numbers. */ >>> +#define __virt_to_mfn(va) (virt_to_maddr(va) >> PAGE_SHIFT) >>>

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-02-02 Thread Oleksii
On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: > On 22.12.2023 16:13, Oleksii Kurochko wrote: > > Signed-off-by: Oleksii Kurochko > > --- > > Changes in V3: > >  - update the commit message > > ??? (yet again) > > > --- a/xen/arch/riscv/include/asm/mm.h > > +++

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-01-24 Thread Jan Beulich
On 23.01.2024 18:27, Oleksii wrote: > On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: >> On 22.12.2023 16:13, Oleksii Kurochko wrote: >>> +#define _PGC_extra    PG_shift(10) >>> +#define PGC_extra PG_mask(1, 10) >>> + >>> +#define is_xen_heap_page(page) ((page)->count_info &

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-01-23 Thread Oleksii
On Tue, 2024-01-23 at 14:03 +0100, Jan Beulich wrote: > On 22.12.2023 16:13, Oleksii Kurochko wrote: > > Signed-off-by: Oleksii Kurochko > > --- > > Changes in V3: > >  - update the commit message > > ??? (yet again) asm/mm.h was changed to mm.h > > > --- a/xen/arch/riscv/include/asm/mm.h > >

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-01-23 Thread Jan Beulich
On 22.12.2023 16:13, Oleksii Kurochko wrote: > Signed-off-by: Oleksii Kurochko > --- > Changes in V3: > - update the commit message ??? (yet again) > --- a/xen/arch/riscv/include/asm/mm.h > +++ b/xen/arch/riscv/include/asm/mm.h > @@ -3,8 +3,251 @@ > #ifndef _ASM_RISCV_MM_H > #define

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-01-15 Thread Oleksii
On Thu, 2024-01-11 at 17:43 +0100, Jan Beulich wrote: > On 22.12.2023 17:32, Oleksii wrote: > > > +#define PFN_ORDER(_pfn) ((_pfn)->v.free.order) > > I missed saving these changes. It should be _pfn -> pfn_. (Just a > > reminder for me). > > And what purpose would the trailing underscore serve

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2024-01-11 Thread Jan Beulich
On 22.12.2023 17:32, Oleksii wrote: >> +#define PFN_ORDER(_pfn) ((_pfn)->v.free.order) > I missed saving these changes. It should be _pfn -> pfn_. (Just a > reminder for me). And what purpose would the trailing underscore serve here? Jan

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2023-12-22 Thread Oleksii
On Fri, 2023-12-22 at 18:32 +0200, Oleksii wrote: > > + > > +struct page_info > > +{ > > +    /* Each frame can be threaded onto a doubly-linked list. */ > > +    struct page_list_entry list; > > + > > +    /* Reference count and various PGC_xxx flags and fields. */ > > +    unsigned long

Re: [PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2023-12-22 Thread Oleksii
On Fri, 2023-12-22 at 17:13 +0200, Oleksii Kurochko wrote: > Signed-off-by: Oleksii Kurochko > --- > Changes in V3: >  - update the commit message >  - introduce DIRECTMAP_VIRT_START. >  - drop changes related pfn_to_paddr() and paddr_to_pfn as they were > remvoe in >    [PATCH v2 32/39]

[PATCH v3 31/34] xen/riscv: add minimal stuff to mm.h to build full Xen

2023-12-22 Thread Oleksii Kurochko
Signed-off-by: Oleksii Kurochko --- Changes in V3: - update the commit message - introduce DIRECTMAP_VIRT_START. - drop changes related pfn_to_paddr() and paddr_to_pfn as they were remvoe in [PATCH v2 32/39] xen/riscv: add minimal stuff to asm/page.h to build full Xen - code style fixes.