virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Wei Wang <wei.w.wang@intel.com>
To: Adam Tao <taozhe1@huawei.com>
Cc: aarcange@redhat.com, virtio-dev@lists.oasis-open.org,
	kvm@vger.kernel.org, mst@redhat.com, amit.shah@redhat.com,
	liliang.opensource@gmail.com, mawilcox@microsoft.com,
	linux-kernel@vger.kernel.org, mhocko@kernel.org,
	linux-mm@kvack.org, yang.zhang.wz@gmail.com, quan.xu@aliyun.com,
	cornelia.huck@de.ibm.com, pbonzini@redhat.com,
	akpm@linux-foundation.org,
	virtualization@lists.linux-foundation.org,
	mgorman@techsingularity.net
Subject: Re: [virtio-dev] [PATCH v13 0/5] Virtio-balloon Enhancement
Date: Wed, 16 Aug 2017 17:33:20 +0800	[thread overview]
Message-ID: <59941160.9050403@intel.com> (raw)
In-Reply-To: <20170816055704.GB21088@shay3t003839711.china.huawei.com>

On 08/16/2017 01:57 PM, Adam Tao wrote:
> On Thu, Aug 03, 2017 at 02:38:14PM +0800, Wei Wang wrote:
>> This patch series enhances the existing virtio-balloon with the following
>> new features:
>> 1) fast ballooning: transfer ballooned pages between the guest and host in
>> chunks using sgs, instead of one by one; and
>> 2) free_page_vq: a new virtqueue to report guest free pages to the host.
>>
> Hi wei,
> The reason we add the new vq for the migration feature is based on
> what(original design based on inflate and deflate vq)?
> I am wondering if we add new feature in the future do we still need to add new type
> of vq?
> Do we need to add one command queue for the common purpose(including
> different type of requests except the in/deflate ones)?
> Thanks
> Adam

Hi Adam,

The the free_page_vq is added to report free pages to the hypervisor.
Neither inflate nor deflate vq was for this purpose.

Based on the current implementation, a vq dedicated to one usage (i.e. 
report
free pages) is better, since mixing with other usages, e.g. a command vq to
handle multiple commands at the same time, would have some issues (e.g. one
being delayed by another due to some resource control), and it also 
results in
more complex interfaces between the driver and device.

For future usages which are still unknown at present, I think we can discuss
them case by case in the future.

Best,
Wei

      parent reply	other threads:[~2017-08-16  9:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1501742299-4369-1-git-send-email-wei.w.wang@intel.com>
     [not found] ` <1501742299-4369-4-git-send-email-wei.w.wang@intel.com>
2017-08-03 14:22   ` [PATCH v13 3/5] virtio-balloon: VIRTIO_BALLOON_F_SG Michael S. Tsirkin
     [not found]   ` <20170803151212-mutt-send-email-mst@kernel.org>
2017-08-03 15:17     ` Wang, Wei W
     [not found]     ` <286AC319A985734F985F78AFA26841F73928C952@shsmsx102.ccr.corp.intel.com>
2017-08-03 15:55       ` Michael S. Tsirkin
     [not found] ` <1501742299-4369-5-git-send-email-wei.w.wang@intel.com>
     [not found]   ` <20170803091151.GF12521@dhcp22.suse.cz>
     [not found]     ` <5982FE07.3040207@intel.com>
     [not found]       ` <20170803104417.GI12521@dhcp22.suse.cz>
     [not found]         ` <59830897.2060203@intel.com>
     [not found]           ` <20170803112831.GN12521@dhcp22.suse.cz>
     [not found]             ` <5983130E.2070806@intel.com>
     [not found]               ` <20170803124106.GR12521@dhcp22.suse.cz>
     [not found]                 ` <59832265.1040805@intel.com>
     [not found]                   ` <20170803135047.GV12521@dhcp22.suse.cz>
2017-08-03 15:20                     ` [PATCH v13 4/5] mm: support reporting free page blocks Wang, Wei W
     [not found]                     ` <286AC319A985734F985F78AFA26841F73928C971@shsmsx102.ccr.corp.intel.com>
2017-08-03 21:02                       ` Michael S. Tsirkin
     [not found]                       ` <20170804000043-mutt-send-email-mst@kernel.org>
2017-08-04  7:53                         ` Michal Hocko
     [not found]                         ` <20170804075337.GC26029@dhcp22.suse.cz>
2017-08-04  8:15                           ` Wei Wang
     [not found]                           ` <59842D1C.5020608@intel.com>
2017-08-04  8:24                             ` Michal Hocko
     [not found]                             ` <20170804082423.GG26029@dhcp22.suse.cz>
2017-08-04  8:55                               ` Wei Wang
2017-08-08  6:12     ` Wei Wang
     [not found]     ` <59895668.9090104@intel.com>
2017-08-08  6:34       ` [virtio-dev] " Wei Wang
     [not found]       ` <59895B71.7050709@intel.com>
2017-08-10  7:05         ` Michal Hocko
     [not found]         ` <20170810070517.GB23863@dhcp22.suse.cz>
2017-08-10  7:38           ` Wei Wang
     [not found]           ` <598C0D7A.9060909@intel.com>
2017-08-10  7:53             ` Michal Hocko
     [not found] ` <1501742299-4369-2-git-send-email-wei.w.wang@intel.com>
2017-08-07  6:58   ` [PATCH v13 1/5] Introduce xbitmap Wei Wang
2017-08-09 21:36   ` Andrew Morton
2017-08-10  5:59     ` Wei Wang
2017-08-16  5:57 ` [virtio-dev] [PATCH v13 0/5] Virtio-balloon Enhancement Adam Tao
     [not found] ` <20170816055704.GB21088@shay3t003839711.china.huawei.com>
2017-08-16  9:33   ` Wei Wang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59941160.9050403@intel.com \
    --to=wei.w.wang@intel.com \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=amit.shah@redhat.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=liliang.opensource@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mawilcox@microsoft.com \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@kernel.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=quan.xu@aliyun.com \
    --cc=taozhe1@huawei.com \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=yang.zhang.wz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).