Re: [PATCH 0/6] rust: page: Support borrowing `struct page` and physaddr conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.02.25 21:41, David Hildenbrand wrote:
On 04.02.25 21:26, Jason Gunthorpe wrote:
On Tue, Feb 04, 2025 at 09:05:47PM +0100, David Hildenbrand wrote:
Fully agreed, this is going into the right direction. Dumping what's mapped
is a different story. Maybe that dumping logic could simply be written in C
for the time being?

?

Isn't dumping just a
    decode pte -> phys_to_virt() -> for_each_u64(virt) -> printk?


IIUC, the problematic bit is that you might not have a directmap such
that phys_to_virt() would tell you the whole story.

... but it's late and I am confused. For dumping the *page table* that would not be required, only when dumping mapped page content (and at this point I am not sure if that is a requirement).

So hopefully Asahi Lina can clarify what the issue was (if there is any :) ).

--
Cheers,

David / dhildenb





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux