Re: [Xen-devel] [PATCH v3 3/9] mm: Scrub pages in alloc_heap_pages() if needed

2017-05-04 Thread Jan Beulich
>>> On 04.05.17 at 17:04, wrote: > On 05/04/2017 10:44 AM, Jan Beulich wrote: > On 14.04.17 at 17:37, wrote: >>> When allocating pages in alloc_heap_pages() first look for clean pages. >> As expressed before, there are cases when we don't really need >> scrubbed pages. Hence the local variabl

Re: [Xen-devel] [PATCH v3 3/9] mm: Scrub pages in alloc_heap_pages() if needed

2017-05-04 Thread Boris Ostrovsky
On 05/04/2017 10:44 AM, Jan Beulich wrote: On 14.04.17 at 17:37, wrote: >> When allocating pages in alloc_heap_pages() first look for clean pages. > As expressed before, there are cases when we don't really need > scrubbed pages. Hence the local variable "use_unscrubbed" below > should really

Re: [Xen-devel] [PATCH v3 3/9] mm: Scrub pages in alloc_heap_pages() if needed

2017-05-04 Thread Jan Beulich
>>> On 14.04.17 at 17:37, wrote: > When allocating pages in alloc_heap_pages() first look for clean pages. As expressed before, there are cases when we don't really need scrubbed pages. Hence the local variable "use_unscrubbed" below should really be some form of input to alloc_heap_pages(). > -

[Xen-devel] [PATCH v3 3/9] mm: Scrub pages in alloc_heap_pages() if needed

2017-04-14 Thread Boris Ostrovsky
When allocating pages in alloc_heap_pages() first look for clean pages. If none is found then retry, take pages marked as unscrubbed and scrub them. Note that we shouldn't find unscrubbed pages in alloc_heap_pages() yet. However, this will become possible when we stop scrubbing from free_heap_page