Re: [virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-09-04 Thread David Hildenbrand
>>> For some reason, I am not seeing this work as I would have expected >>> but I don't have solid reasoning to share yet. It could be simply >>> because I am putting my hook at the wrong place. I will continue >>> investigating this. >>> >>> In any case, I may be over complicating things here, so

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-30 Thread Nitesh Narayan Lal
On 8/30/19 11:31 AM, Alexander Duyck wrote: > On Fri, Aug 30, 2019 at 8:15 AM Nitesh Narayan Lal wrote: >> >> On 8/12/19 2:47 PM, Alexander Duyck wrote: >>> On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal >>> wrote: This patch introduces the core infrastructure for free page reporting

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-30 Thread Alexander Duyck
On Fri, Aug 30, 2019 at 8:15 AM Nitesh Narayan Lal wrote: > > > On 8/12/19 2:47 PM, Alexander Duyck wrote: > > On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal > > wrote: > >> This patch introduces the core infrastructure for free page reporting in > >> virtual environments. It enables the

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-30 Thread Nitesh Narayan Lal
On 8/12/19 2:47 PM, Alexander Duyck wrote: > On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: >> This patch introduces the core infrastructure for free page reporting in >> virtual environments. It enables the kernel to track the free pages which >> can be reported to its hypervisor so

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-20 Thread Nitesh Narayan Lal
On 8/12/19 4:04 PM, Nitesh Narayan Lal wrote: > On 8/12/19 2:47 PM, Alexander Duyck wrote: >> On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: >>> This patch introduces the core infrastructure for free page reporting in >>> virtual environments. It enables the kernel to track the free

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-16 Thread Nitesh Narayan Lal
On 8/15/19 7:00 PM, Alexander Duyck wrote: > On Thu, Aug 15, 2019 at 12:23 PM Nitesh Narayan Lal wrote: [...] >>> +} >>> + >>> +/** >>> + * __page_reporting_enqueue - tracks the freed page in the respective >>> zone's >>> + * bitmap and enqueues a new page reporting job

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-15 Thread Alexander Duyck
On Thu, Aug 15, 2019 at 12:23 PM Nitesh Narayan Lal wrote: > > > On 8/15/19 9:15 AM, Nitesh Narayan Lal wrote: > > On 8/14/19 12:11 PM, Alexander Duyck wrote: > >> On Wed, Aug 14, 2019 at 8:49 AM Nitesh Narayan Lal > >> wrote: > >>> On 8/12/19 2:47 PM, Alexander Duyck wrote: > On Mon, Aug

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-15 Thread Nitesh Narayan Lal
On 8/15/19 9:15 AM, Nitesh Narayan Lal wrote: > On 8/14/19 12:11 PM, Alexander Duyck wrote: >> On Wed, Aug 14, 2019 at 8:49 AM Nitesh Narayan Lal wrote: >>> On 8/12/19 2:47 PM, Alexander Duyck wrote: On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: > This patch

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-15 Thread Nitesh Narayan Lal
On 8/14/19 12:11 PM, Alexander Duyck wrote: > On Wed, Aug 14, 2019 at 8:49 AM Nitesh Narayan Lal wrote: >> >> On 8/12/19 2:47 PM, Alexander Duyck wrote: >>> On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal >>> wrote: This patch introduces the core infrastructure for free page reporting

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-14 Thread Alexander Duyck
On Wed, Aug 14, 2019 at 8:49 AM Nitesh Narayan Lal wrote: > > > On 8/12/19 2:47 PM, Alexander Duyck wrote: > > On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal > > wrote: > >> This patch introduces the core infrastructure for free page reporting in > >> virtual environments. It enables the

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-14 Thread Nitesh Narayan Lal
On 8/12/19 2:47 PM, Alexander Duyck wrote: > On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: >> This patch introduces the core infrastructure for free page reporting in >> virtual environments. It enables the kernel to track the free pages which >> can be reported to its hypervisor so

Re: [virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-14 Thread Nitesh Narayan Lal
On 8/14/19 3:07 AM, David Hildenbrand wrote: > On 14.08.19 01:14, Alexander Duyck wrote: >> On Tue, Aug 13, 2019 at 3:34 AM David Hildenbrand wrote: >>> +static int process_free_page(struct page *page, >>> +struct page_reporting_config *phconf, int >>>

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-14 Thread David Hildenbrand
On 14.08.19 01:14, Alexander Duyck wrote: > On Tue, Aug 13, 2019 at 3:34 AM David Hildenbrand wrote: >> >> +static int process_free_page(struct page *page, >> +struct page_reporting_config *phconf, int >> count) >> +{ >> + int mt, order, ret

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-13 Thread Alexander Duyck
On Tue, Aug 13, 2019 at 3:34 AM David Hildenbrand wrote: > > +static int process_free_page(struct page *page, > +struct page_reporting_config *phconf, int > count) > +{ > + int mt, order, ret = 0; > + > + mt =

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-13 Thread David Hildenbrand
On 13.08.19 12:42, Nitesh Narayan Lal wrote: > > On 8/13/19 6:34 AM, David Hildenbrand wrote: >> +static int process_free_page(struct page *page, >> +struct page_reporting_config *phconf, int >> count) >> +{ >> + int mt, order, ret = 0; >

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-13 Thread Nitesh Narayan Lal
On 8/13/19 6:34 AM, David Hildenbrand wrote: > +static int process_free_page(struct page *page, > +struct page_reporting_config *phconf, int > count) > +{ > + int mt, order, ret = 0; [...] > +/** > + * zone_reporting_init - For each

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-13 Thread David Hildenbrand
+static int process_free_page(struct page *page, +struct page_reporting_config *phconf, int count) +{ + int mt, order, ret = 0; + + mt = get_pageblock_migratetype(page); + order = page_private(page); +

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-13 Thread Nitesh Narayan Lal
On 8/12/19 4:05 PM, David Hildenbrand wrote: >>> --- >>> include/linux/mmzone.h | 11 ++ >>> include/linux/page_reporting.h | 63 +++ >>> mm/Kconfig | 6 + >>> mm/Makefile| 1 + >>> mm/page_alloc.c| 42 - >>>

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-12 Thread Nitesh Narayan Lal
On 8/12/19 2:47 PM, Alexander Duyck wrote: > On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: >> This patch introduces the core infrastructure for free page reporting in >> virtual environments. It enables the kernel to track the free pages which >> can be reported to its hypervisor so

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-12 Thread David Hildenbrand
>> --- >> include/linux/mmzone.h | 11 ++ >> include/linux/page_reporting.h | 63 +++ >> mm/Kconfig | 6 + >> mm/Makefile| 1 + >> mm/page_alloc.c| 42 - >> mm/page_reporting.c| 332

[virtio-dev] Re: [RFC][Patch v12 1/2] mm: page_reporting: core infrastructure

2019-08-12 Thread Alexander Duyck
On Mon, Aug 12, 2019 at 6:13 AM Nitesh Narayan Lal wrote: > > This patch introduces the core infrastructure for free page reporting in > virtual environments. It enables the kernel to track the free pages which > can be reported to its hypervisor so that the hypervisor could > free and reuse that