Re: [PATCH v2] hw/riscv/riscv-iommu: Fix process directory table walk

2025-03-09 Thread Alistair Francis
On Sun, Mar 2, 2025 at 3:39 AM Jason Chien wrote: > > The PPN field in a non-leaf PDT entry is positioned differently from that > in a leaf PDT entry. The original implementation incorrectly used the leaf > entry's PPN mask to extract the PPN from a non-leaf entry, leading to an > erroneous page t

Re: [PATCH v2] hw/riscv/riscv-iommu: Fix process directory table walk

2025-03-07 Thread Daniel Henrique Barboza
On 3/1/25 2:37 PM, Jason Chien wrote: The PPN field in a non-leaf PDT entry is positioned differently from that in a leaf PDT entry. The original implementation incorrectly used the leaf entry's PPN mask to extract the PPN from a non-leaf entry, leading to an erroneous page table walk. This c

[PATCH v2] hw/riscv/riscv-iommu: Fix process directory table walk

2025-03-01 Thread Jason Chien
The PPN field in a non-leaf PDT entry is positioned differently from that in a leaf PDT entry. The original implementation incorrectly used the leaf entry's PPN mask to extract the PPN from a non-leaf entry, leading to an erroneous page table walk. This commit introduces new macros to properly def