[virtio-dev] Re: [virtio-comment] [PATCH v2 1/3] content: Document balloon feature free page hints

2020-05-26 Thread Alexander Duyck
On Wed, May 20, 2020 at 1:24 AM David Hildenbrand wrote: > > On 19.05.20 23:00, Alexander Duyck wrote: > > On Tue, May 19, 2020 at 9:09 AM David Hildenbrand wrote: [...] > > Let's think this through, what about this scenario: > > The device sets

[virtio-dev] Re: [virtio-comment] [PATCH v3 2/3] content: Document balloon feature page poison

2020-05-26 Thread Cornelia Huck
On Tue, 26 May 2020 17:28:00 +0200 David Hildenbrand wrote: > On 26.05.20 16:50, Alexander Duyck wrote: > > On Tue, May 26, 2020 at 1:24 AM David Hildenbrand wrote: > > > >> Still wondering what to do with free page hinting ... in the meantime > >> I'll have a look at free page reporting :)

[virtio-dev] Re: [virtio-comment] [PATCH v3 3/3] content: Document balloon feature free page reporting

2020-05-26 Thread Alexander Duyck
On Tue, May 26, 2020 at 2:06 AM David Hildenbrand wrote: > > On 20.05.20 04:02, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Free page reporting is a feature that allows the guest to proactively > > report unused pages to the host. By making use of this feature is is > > possible to

[virtio-dev] Re: [virtio-comment] [PATCH v3 2/3] content: Document balloon feature page poison

2020-05-26 Thread Alexander Duyck
On Tue, May 26, 2020 at 1:24 AM David Hildenbrand wrote: > > On 20.05.20 18:25, Alexander Duyck wrote: > > On Wed, May 20, 2020 at 2:28 AM David Hildenbrand wrote: > >> > >> On 20.05.20 04:02, Alexander Duyck wrote: > >>> From: Alexander Duyck > >>> > >>> Page poison provides a way for the

[virtio-dev] Re: [PATCH v2 resubmit] virtio-balloon: Disable free page reporting if page poison reporting is not enabled

2020-05-26 Thread Alexander Duyck
Do I need to resubmit this patch? It has been over two weeks now since it was originally submitted, and a week and a half since I last sent out an email following up. I'm just wondering if there is some list I missed as I am assuming the maintainers and lists I contacted here are correct? It looks

[virtio-dev] Re: [virtio-comment] [PATCH v3 2/3] content: Document balloon feature page poison

2020-05-26 Thread David Hildenbrand
On 26.05.20 16:50, Alexander Duyck wrote: > On Tue, May 26, 2020 at 1:24 AM David Hildenbrand wrote: >> >> On 20.05.20 18:25, Alexander Duyck wrote: >>> On Wed, May 20, 2020 at 2:28 AM David Hildenbrand wrote: On 20.05.20 04:02, Alexander Duyck wrote: > From: Alexander Duyck >

[virtio-dev] Re: [virtio-comment] [PATCH v3 2/3] content: Document balloon feature page poison

2020-05-26 Thread David Hildenbrand
On 20.05.20 18:25, Alexander Duyck wrote: > On Wed, May 20, 2020 at 2:28 AM David Hildenbrand wrote: >> >> On 20.05.20 04:02, Alexander Duyck wrote: >>> From: Alexander Duyck >>> >>> Page poison provides a way for the guest to notify the host of the content >>> expected to be found in pages when

[virtio-dev] Re: [virtio-comment] [PATCH v3 3/3] content: Document balloon feature free page reporting

2020-05-26 Thread David Hildenbrand
On 20.05.20 04:02, Alexander Duyck wrote: > From: Alexander Duyck > > Free page reporting is a feature that allows the guest to proactively > report unused pages to the host. By making use of this feature is is > possible to reduce the overall memory footprint of the guest in cases where > some

[virtio-dev] [PATCH v4 2/3] virtio-gpu: add VIRTIO_GPU_F_RESOURCE_UUID feature

2020-05-26 Thread David Stevens
This feature allows the guest to request a UUID from the host for a particular virtio_gpu resource. The UUID can then be shared with other virtio devices, to allow the other host devices to access the virtio_gpu's corresponding host resource. Signed-off-by: David Stevens ---

[virtio-dev] [PATCH v4 1/3] virtio: add dma-buf support for exported objects

2020-05-26 Thread David Stevens
This change adds a new flavor of dma-bufs that can be used by virtio drivers to share exported objects. A virtio dma-buf can be queried by virtio drivers to obtain the UUID which identifies the underlying exported object. Signed-off-by: David Stevens --- drivers/virtio/Makefile | 2 +-

[virtio-dev] [PATCH v4 3/3] drm/virtio: Support virtgpu exported resources

2020-05-26 Thread David Stevens
Add support for UUID-based resource sharing mechanism to virtgpu. This implements the new virtgpu commands and hooks them up to dma-buf's get_uuid callback. Signed-off-by: David Stevens --- drivers/gpu/drm/virtio/virtgpu_drv.c | 3 + drivers/gpu/drm/virtio/virtgpu_drv.h | 20 ++

[virtio-dev] [PATCH v4 0/3] Support virtio cross-device resources

2020-05-26 Thread David Stevens
This patchset implements the current proposal for virtio cross-device resource sharing [1]. It will be used to import virtio resources into the virtio-video driver currently under discussion [2]. The patch under consideration to add support in the virtio-video driver is [3]. It uses the APIs from

[virtio-dev] Re: [virtio-comment] [PATCH v3 2/3] content: Document balloon feature page poison

2020-05-26 Thread Alexander Duyck
On Tue, May 26, 2020 at 8:38 AM Cornelia Huck wrote: > > On Tue, 26 May 2020 17:28:00 +0200 > David Hildenbrand wrote: > > > On 26.05.20 16:50, Alexander Duyck wrote: > > > On Tue, May 26, 2020 at 1:24 AM David Hildenbrand > > > wrote: > > > >> Still wondering what to do with free page hinting

[virtio-dev] [PATCH v25 QEMU 1/3] virtio-balloon: Implement support for page poison reporting feature

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck We need to make certain to advertise support for page poison reporting if we want to actually get data on if the guest will be poisoning pages. Add a value for reporting the poison value being used if page poisoning is enabled in the guest. With this we can determine if we

[virtio-dev] [PATCH v25 QEMU 2/3] virtio-balloon: Provide an interface for free page reporting

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck Add support for free page reporting. The idea is to function very similar to how the balloon works in that we basically end up madvising the page as not being used. However we don't really need to bother with any deflate type logic since the page will be faulted back into

[virtio-dev] [PATCH v25 QEMU 0/3] virtio-balloon: add support for page poison and free page reporting

2020-05-26 Thread Alexander Duyck
This series provides an asynchronous means of reporting free guest pages to QEMU through virtio-balloon so that the memory associated with those pages can be dropped and reused by other processes and/or guests on the host. Using this it is possible to avoid unnecessary I/O to disk and greatly

[virtio-dev] [PATCH v25 QEMU 3/3] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck In an upcoming patch a feature named Free Page Reporting is about to be added. In order to avoid any confusion we should drop the use of the word 'report' when referring to Free Page Hinting. So what this patch does is go through and replace all instances of 'report' with

[virtio-dev] [PATCH v4 0/3] virtio-spec: Add documentation for recently added balloon features

2020-05-26 Thread Alexander Duyck
This patch set is meant to add documentation for balloon features that have been recently added to the Linux kernel[1,2] and that we are currently working on adding to QEMU[3]. Changes since RFC: Incorporated suggestions from Cornelia Huck Fixed a few additional spelling errors Changes since v1:

[virtio-dev] [PATCH v4 1/3] content: Document balloon feature page poison

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck Page poison provides a way for the guest to notify the host that it is initializing or poisoning freed pages with some specific poison value. As a result of this we can infer a couple traits about the guest: 1. Free pages will contain a specific pattern within the guest.

[virtio-dev] [PATCH v4 3/3] content: Document balloon feature free page hints

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck Free page hints allow the balloon driver to provide information on what pages are not currently in use so that we can avoid the cost of copying them in migration scenarios. Add a feature description for free page hints describing basic functioning and requirements. In

[virtio-dev] [PATCH v4 2/3] content: Document balloon feature free page reporting

2020-05-26 Thread Alexander Duyck
From: Alexander Duyck Free page reporting is a feature that allows the guest to proactively report unused pages to the host. By making use of this feature is is possible to reduce the overall memory footprint of the guest in cases where some significant portion of the memory is idle. Add