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

2019-08-12 Thread Nitesh Narayan Lal
nd (virtio-balloon) is responsible for reporting these batched pages to the host synchronously. Once reporting/ freeing is complete, isolated pages are returned back to the buddy. Signed-off-by: Nitesh Narayan Lal --- include/linux/mmzone.h | 11 ++ include/linux/page_reporting.h | 63 +

[virtio-dev] [RFC][PATCH v12 0/2] mm: Support for page reporting

2019-08-12 Thread Nitesh Narayan Lal
s enabled by multiple drivers. * Simplified the logic responsible for decrementing free page counter for each zone. * Simplified code structuring/naming. -- Nitesh Narayan Lal (2): mm: page_reporting: core infrastructure virtio-balloon: interface to support free page reporting drive

[virtio-dev] [RFC][Patch v12 2/2] virtio-balloon: interface to support free page reporting

2019-08-12 Thread Nitesh Narayan Lal
ing the page_reporting_flag which is a virtio-balloon parameter. Signed-off-by: Nitesh Narayan Lal --- drivers/virtio/Kconfig | 1 + drivers/virtio/virtio_balloon.c | 64 - include/uapi/linux/virtio_balloon.h | 1 + 3 files changed, 65 insertions(+)

[virtio-dev] [QEMU Patch 2/2] virtio-balloon: support for handling page reporting

2019-08-12 Thread Nitesh Narayan Lal
Page reporting is a feature which enables the virtual machine to report chunk of free pages to the hypervisor. This patch enables QEMU to process these reports from the VM and discard the unused memory range. Signed-off-by: Nitesh Narayan Lal --- hw/virtio/virtio-balloon.c | 41

[virtio-dev] [QEMU Patch 1/2] virtio-balloon: adding bit for page reporting support

2019-08-12 Thread Nitesh Narayan Lal
This patch will be replaced once the feature is merged into the Linux kernel. Signed-off-by: Nitesh Narayan Lal --- include/standard-headers/linux/virtio_balloon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/standard-headers/linux/virtio_balloon.h b/include/standard-headers

[virtio-dev] Re: [QEMU Patch 2/2] virtio-balloon: support for handling page reporting

2019-08-12 Thread Nitesh Narayan Lal
On 8/12/19 11:18 AM, Alexander Duyck wrote: > On Mon, Aug 12, 2019 at 6:14 AM Nitesh Narayan Lal wrote: >> Page reporting is a feature which enables the virtual machine to report >> chunk of free pages to the hypervisor. >> This patch enables QEMU to process thes

[virtio-dev] Re: [RFC][Patch v12 2/2] virtio-balloon: interface to support free page reporting

2019-08-14 Thread Nitesh Narayan Lal
On 8/14/19 6:29 AM, Cornelia Huck wrote: > On Mon, 12 Aug 2019 09:12:35 -0400 > Nitesh Narayan Lal wrote: > >> Enables the kernel to negotiate VIRTIO_BALLOON_F_REPORTING feature with >> the host. If it is available and page_reporting_flag is set to true, >> page_r

[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

[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 th

[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

[virtio-dev] Re: [RFC][Patch v12 2/2] virtio-balloon: interface to support free page reporting

2019-08-14 Thread Nitesh Narayan Lal
On 8/14/19 9:42 AM, Cornelia Huck wrote: > On Wed, 14 Aug 2019 07:47:40 -0400 > Nitesh Narayan Lal wrote: > >> On 8/14/19 6:29 AM, Cornelia Huck wrote: >>> On Mon, 12 Aug 2019 09:12:35 -0400 >>> Nitesh Narayan Lal wrote: >>> >>>> Enab

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-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

[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-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-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

Re: [virtio-dev] [PATCH v6 4/6] mm: Introduce Reported pages

2019-08-22 Thread Nitesh Narayan Lal
On 8/21/19 10:59 AM, Alexander Duyck wrote: > From: Alexander Duyck > > In order to pave the way for free page reporting in virtualized > environments we will need a way to get pages out of the free lists and > identify those pages after they have been returned. To accomplish this, > this patch

[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 t

[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 th

[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

[virtio-dev] Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-12 Thread Nitesh Narayan Lal
On 9/12/19 3:47 AM, David Hildenbrand wrote: > On 12.09.19 09:16, Michal Hocko wrote: >> On Wed 11-09-19 18:09:18, David Hildenbrand wrote: >>> On 11.09.19 15:51, Michal Hocko wrote: On Wed 11-09-19 15:20:02, Michal Hocko wrote: [...] >> 4. Continuously report, not the "one time

[virtio-dev] Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-11 Thread Nitesh Narayan Lal
On 9/11/19 8:42 AM, David Hildenbrand wrote: > On 11.09.19 14:25, Michal Hocko wrote: >> On Wed 11-09-19 14:19:41, Michal Hocko wrote: >>> On Wed 11-09-19 08:08:38, Michael S. Tsirkin wrote: On Wed, Sep 11, 2019 at 01:36:19PM +0200, Michal Hocko wrote: > On Tue 10-09-19 14:23:40,

[virtio-dev] Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-11 Thread Nitesh Narayan Lal
On 9/11/19 8:54 AM, Michal Hocko wrote: > On Wed 11-09-19 14:42:41, David Hildenbrand wrote: >> On 11.09.19 14:25, Michal Hocko wrote: >>> On Wed 11-09-19 14:19:41, Michal Hocko wrote: On Wed 11-09-19 08:08:38, Michael S. Tsirkin wrote: > On Wed, Sep 11, 2019 at 01:36:19PM +0200, Michal

[virtio-dev] Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-11 Thread Nitesh Narayan Lal
On 9/11/19 9:20 AM, Michal Hocko wrote: > On Wed 11-09-19 15:03:39, David Hildenbrand wrote: >> On 11.09.19 14:54, Michal Hocko wrote: >>> On Wed 11-09-19 14:42:41, David Hildenbrand wrote: On 11.09.19 14:25, Michal Hocko wrote: > On Wed 11-09-19 14:19:41, Michal Hocko wrote: >> On