Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-20 Thread Jan Beulich
On 20.08.2024 16:42, oleksii.kuroc...@gmail.com wrote: > On Tue, 2024-08-20 at 15:47 +0200, Jan Beulich wrote: >> On 20.08.2024 15:18, oleksii.kuroc...@gmail.com wrote: >>> On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: From all I can determine we also get here when making brand new >>>

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-20 Thread oleksii . kurochko
On Tue, 2024-08-20 at 15:47 +0200, Jan Beulich wrote: > On 20.08.2024 15:18, oleksii.kuroc...@gmail.com wrote: > > On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: > > > > + * Sanity check of the entry > > > > + * mfn is not valid and we are not populating page table. This > > > > means > > >

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-20 Thread Jan Beulich
On 20.08.2024 15:18, oleksii.kuroc...@gmail.com wrote: > On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: >>> + * Sanity check of the entry >>> + * mfn is not valid and we are not populating page table. This >>> means >> >> How does this fit with ... >> >>> + * we either modify entry or remove

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-20 Thread oleksii . kurochko
On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: > > + * Sanity check of the entry > > + * mfn is not valid and we are not populating page table. This > > means > > How does this fit with ... > > > + * we either modify entry or remove an entry. > > + */ > > +static bool pt_check_entry(pte_t

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-16 Thread oleksii . kurochko
On Thu, 2024-08-15 at 17:26 +0200, Jan Beulich wrote: > On 15.08.2024 15:34, oleksii.kuroc...@gmail.com wrote: > > On Thu, 2024-08-15 at 14:16 +0200, Jan Beulich wrote: > > > On 15.08.2024 13:21, oleksii.kuroc...@gmail.com wrote: > > > > On Thu, 2024-08-15 at 10:09 +0200, Jan Beulich wrote: > > > >

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-15 Thread Jan Beulich
On 15.08.2024 15:34, oleksii.kuroc...@gmail.com wrote: > On Thu, 2024-08-15 at 14:16 +0200, Jan Beulich wrote: >> On 15.08.2024 13:21, oleksii.kuroc...@gmail.com wrote: >>> On Thu, 2024-08-15 at 10:09 +0200, Jan Beulich wrote: On 14.08.2024 18:50, oleksii.kuroc...@gmail.com wrote: > On Tue

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-15 Thread oleksii . kurochko
On Thu, 2024-08-15 at 14:16 +0200, Jan Beulich wrote: > On 15.08.2024 13:21, oleksii.kuroc...@gmail.com wrote: > > On Thu, 2024-08-15 at 10:09 +0200, Jan Beulich wrote: > > > On 14.08.2024 18:50, oleksii.kuroc...@gmail.com wrote: > > > > On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: > > > >

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-15 Thread Jan Beulich
On 15.08.2024 13:21, oleksii.kuroc...@gmail.com wrote: > On Thu, 2024-08-15 at 10:09 +0200, Jan Beulich wrote: >> On 14.08.2024 18:50, oleksii.kuroc...@gmail.com wrote: >>> On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: On 09.08.2024 18:19, Oleksii Kurochko wrote: > RISC-V detects s

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-15 Thread oleksii . kurochko
On Thu, 2024-08-15 at 10:09 +0200, Jan Beulich wrote: > On 14.08.2024 18:50, oleksii.kuroc...@gmail.com wrote: > > On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: > > > On 09.08.2024 18:19, Oleksii Kurochko wrote: > > > > Introduce internal macros starting with PTE_* for convenience. > > > >

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-15 Thread Jan Beulich
On 14.08.2024 18:50, oleksii.kuroc...@gmail.com wrote: > On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: >> On 09.08.2024 18:19, Oleksii Kurochko wrote: >>> Introduce internal macros starting with PTE_* for convenience. >>> These macros closely resemble PTE bits, with the exception of >>> PTE

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-14 Thread oleksii . kurochko
On Tue, 2024-08-13 at 12:31 +0200, Jan Beulich wrote: > On 09.08.2024 18:19, Oleksii Kurochko wrote: > > Implement map_pages_to_xen() which requires several > > functions to manage page tables and entries: > > - pt_update() > > - pt_mapping_level() > > - pt_update_entry() > > - pt_next_level() > >

Re: [PATCH v4 6/7] xen/riscv: page table handling

2024-08-13 Thread Jan Beulich
On 09.08.2024 18:19, Oleksii Kurochko wrote: > Implement map_pages_to_xen() which requires several > functions to manage page tables and entries: > - pt_update() > - pt_mapping_level() > - pt_update_entry() > - pt_next_level() > - pt_check_entry() > > To support these operations, add functions for

[PATCH v4 6/7] xen/riscv: page table handling

2024-08-09 Thread Oleksii Kurochko
Implement map_pages_to_xen() which requires several functions to manage page tables and entries: - pt_update() - pt_mapping_level() - pt_update_entry() - pt_next_level() - pt_check_entry() To support these operations, add functions for creating, mapping, and unmapping Xen tables: - create_xen_tabl