Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-10 Thread Wei Wang
On 03/09/2017 10:14 PM, Matthew Wilcox wrote: On Fri, Mar 03, 2017 at 01:40:28PM +0800, Wei Wang wrote: From: Liang Li <liang.z...@intel.com> 1) allocating pages (6.5%) 2) sending PFNs to host (68.3%) 3) address translation (6.1%) 4) madvise (19%) This patch optimizes step 2) by trans

Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-10 Thread Wei Wang
On 03/08/2017 12:01 PM, Michael S. Tsirkin wrote: On Fri, Mar 03, 2017 at 01:40:28PM +0800, Wei Wang wrote: From: Liang Li <liang.z...@intel.com> The implementation of the current virtio-balloon is not very efficient, because the pages are transferred to the host one by one

Re: [PATCH v7 kernel 2/5] virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-08 Thread Wei Wang
On 03/08/2017 12:01 PM, Michael S. Tsirkin wrote: On Fri, Mar 03, 2017 at 01:40:27PM +0800, Wei Wang wrote: From: Liang Li <liang.z...@intel.com> Add a new feature bit, VIRTIO_BALLOON_F_CHUNK_TRANSFER. Please check the implementation patch commit for details about this feature. better

Re: [PATCH v7 kernel 5/5] This patch contains two parts:

2017-03-08 Thread Wei Wang
On 03/06/2017 09:23 PM, David Hildenbrand wrote:Am 03.03.2017 um 06:40 schrieb Wei Wang: From: Liang Li <liang.z...@intel.com> Sorry, I just saw the message due to an email issue. I'd prefer to split this into two parts then and to create proper subjects. Agree, will do. If I re

[PATCH v7 kernel 5/5] This patch contains two parts:

2017-03-02 Thread Wei Wang
f some of these unused pages, this is very helpful to reduce the network traffic and speed up the live migration process. Signed-off-by: Liang Li <liang.z...@intel.com> Signed-off-by: Wei Wang <wei.w.w...@intel.com> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Mel Gorman <mgor

[PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-02 Thread Wei Wang
ed-off-by: Liang Li <liang.z...@intel.com> Signed-off-by: Wei Wang <wei.w.w...@intel.com> Suggested-by: Michael S. Tsirkin <m...@redhat.com> Cc: Michael S. Tsirkin <m...@redhat.com> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Cornelia Huck <cornelia.h...@de.ibm.com&g

[PATCH v7 kernel 4/5] virtio-balloon: define flags and head for host request vq

2017-03-02 Thread Wei Wang
cache, synchronize file system, etc. The hypervisor can get some of guest's runtime information through this virtual queue too, e.g. the guest's unused page information, which can be used for live migration optimization. Signed-off-by: Liang Li <liang.z...@intel.com> Signed-off-by: Wei W

[PATCH v7 kernel 1/5] virtio-balloon: rework deflate to add page to a list

2017-03-02 Thread Wei Wang
k <cornelia.h...@de.ibm.com> Cc: Amit Shah <amit.s...@redhat.com> Cc: Dave Hansen <dave.han...@intel.com> Cc: Andrea Arcangeli <aarca...@redhat.com> Cc: David Hildenbrand <da...@redhat.com> Cc: Liang Li <liliang...@gmail.com> Cc: Wei Wang &

[PATCH v7 kernel 2/5] virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-02 Thread Wei Wang
From: Liang Li <liang.z...@intel.com> Add a new feature bit, VIRTIO_BALLOON_F_CHUNK_TRANSFER. Please check the implementation patch commit for details about this feature. Signed-off-by: Liang Li <liang.z...@intel.com> Signed-off-by: Wei Wang <wei.w.w...@intel.com> Cc: Mic

[PATCH v7 kernel 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2017-03-02 Thread Wei Wang
Arcangeli <aarca...@redhat.com> Cc: David Hildenbrand <da...@redhat.com> Cc: Liang Li <liliang...@gmail.com> Cc: Wei Wang <wei.w.w...@intel.com> Liang Li (5): virtio-balloon: rework deflate to add page to a list virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER virtio-ball

<    1   2   3   4   5