On 16.10.2024 11:15, Oleksii Kurochko wrote:
> --- a/xen/arch/riscv/include/asm/mm.h
> +++ b/xen/arch/riscv/include/asm/mm.h
> @@ -25,8 +25,12 @@
>
> static inline void *maddr_to_virt(paddr_t ma)
> {
> - BUG_ON("unimplemented");
> - return NULL;
> + /* Offset in the direct map, accounting for pdx compression */
> + unsigned long va_offset = maddr_to_directmapoff(ma);
Why the mentioning of PDX compression? At least right now it's unavailable
for RISC-V afaics. Are there plans to change that any time soon?
Jan