linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* vmalloc faulting on RISC-V
@ 2020-09-09  6:29 Pekka Enberg
  2020-09-09 18:28 ` Joerg Roedel
  2020-09-09 20:35 ` Palmer Dabbelt
  0 siblings, 2 replies; 4+ messages in thread
From: Pekka Enberg @ 2020-09-09  6:29 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: linux-riscv, Joerg Roedel

Hello!

Why does RISC-V need vmalloc faulting in do_page_fault()? If I
understand correctly, some architectures implement it because process
page tables can get out of sync with "init_mm.pgd". How does that
happen on RISC-V?

I am asking because Joerg Roedel recently switched the x86
architecture to a different approach because apparently vmalloc
faulting is error-prone:

commit 7f0a002b5a21302d9f4b29ba83c96cd433ff3769
Author: Joerg Roedel <jroedel@suse.de>
Date:   Mon Jun 1 21:52:40 2020 -0700

    x86/mm: remove vmalloc faulting

    Remove fault handling on vmalloc areas, as the vmalloc code now takes
    care of synchronizing changes to all page-tables in the system.

If RISC-V has the issue of page tables getting out of sync, I think we
should switch to this approach too.

Regards,

- Pekka

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-18 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09  6:29 vmalloc faulting on RISC-V Pekka Enberg
2020-09-09 18:28 ` Joerg Roedel
2020-09-09 20:35 ` Palmer Dabbelt
2020-09-18 12:08   ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).