Re: [PATCH v9 05/15] guest_memfd: Use folio_has_hwpoisoned_page()

Matthew Wilcox <[email protected]>
Newsgroups gmane.linux.file-systems,gmane.linux.kernel.mm
Message-ID <[email protected]>
On Thu, Aug 13, 2026 at 09:20:54AM +0200, David Hildenbrand (Arm) wrote:
> On 8/5/26 23:05, Matthew Wilcox (Oracle) wrote:
> > folio_test_hwpoison() only works on hugetlb folios today and will give
> > the wrong answer for other large folios.  folio_has_hwpoisoned_page()
> > works on both.
> 
> guest_memfd only uses small folios, so it doesn't really matter.

Well ...

virt/kvm/guest_memfd.c: /* TODO: Support huge pages. */

and one of the followup patches I have actually removes
folio_test/set/clear_hwpoison() (it's a bit churny so I didn't want
to include it as part of this series)

> Acked-by: David Hildenbrand (Arm) <[email protected]>

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.