On 12.02.2025 17:50, Oleksii Kurochko wrote:
> --- a/xen/arch/riscv/include/asm/page.h
> +++ b/xen/arch/riscv/include/asm/page.h
> @@ -210,6 +210,13 @@ static inline pte_t pte_from_mfn(mfn_t mfn, unsigned int
> flags)
>
> pte_t pt_walk(vaddr_t va, unsigned int *pte_level);
>
> +static inline mfn_t _vmap_to_mfn(vaddr_t va)
> +{
> + pte_t entry = pt_walk(va, NULL);
> + BUG_ON(!pte_is_mapping(entry));
> + return mfn_from_pte(entry);
> +}
Nit: Blank line between declaration(s) and statement(s) please. Blank line
ahead of the main return statement of a function please. With that (happy
to adjust while committing):
Reviewed-by: Jan Beulich <[email protected]>
Jan