Re: [Xen-devel] [PATCH] mm: Scrub pages returned back to heap if MEMF_no_scrub is set

2017-09-18 Thread Wei Liu
On Fri, Sep 15, 2017 at 10:05:22AM -0600, Jan Beulich wrote: > >>> On 15.09.17 at 16:04, wrote: > > Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages() > > returns pages back to heap as result of assign_pages() error when those > > pages were requested

Re: [Xen-devel] [PATCH] mm: Scrub pages returned back to heap if MEMF_no_scrub is set

2017-09-15 Thread Konrad Rzeszutek Wilk
On Fri, Sep 15, 2017 at 12:47:29PM -0400, Boris Ostrovsky wrote: > On 09/15/2017 12:05 PM, Jan Beulich wrote: > On 15.09.17 at 16:04, wrote: > >> Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages() > >> returns pages back to heap as result of

Re: [Xen-devel] [PATCH] mm: Scrub pages returned back to heap if MEMF_no_scrub is set

2017-09-15 Thread Boris Ostrovsky
On 09/15/2017 12:05 PM, Jan Beulich wrote: On 15.09.17 at 16:04, wrote: >> Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages() >> returns pages back to heap as result of assign_pages() error when those >> pages were requested with MEMF_no_scrub

Re: [Xen-devel] [PATCH] mm: Scrub pages returned back to heap if MEMF_no_scrub is set

2017-09-15 Thread Jan Beulich
>>> On 15.09.17 at 16:04, wrote: > Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages() > returns pages back to heap as result of assign_pages() error when those > pages were requested with MEMF_no_scrub flag. > > We need to do this because there is a

[Xen-devel] [PATCH] mm: Scrub pages returned back to heap if MEMF_no_scrub is set

2017-09-15 Thread Boris Ostrovsky
Set free_heap_pages()'s need_scrub to true if alloc_domheap_pages() returns pages back to heap as result of assign_pages() error when those pages were requested with MEMF_no_scrub flag. We need to do this because there is a possibility that alloc_heap_pages() might clear buddy's PGC_need_scrubs