From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQWkL-0000aE-U8 for qemu-devel@nongnu.org; Wed, 25 Feb 2015 02:51:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQWkG-0006NM-DY for qemu-devel@nongnu.org; Wed, 25 Feb 2015 02:51:05 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:56057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQWkF-0006La-8w for qemu-devel@nongnu.org; Wed, 25 Feb 2015 02:51:00 -0500 Message-ID: <54ED7ECE.9070607@huawei.com> Date: Wed, 25 Feb 2015 15:50:38 +0800 From: zhanghailiang MIME-Version: 1.0 References: <1423711034-5340-1-git-send-email-zhang.zhanghailiang@huawei.com> <1423711034-5340-18-git-send-email-zhang.zhanghailiang@huawei.com> <54E2825B.9040500@redhat.com> In-Reply-To: <54E2825B.9040500@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC v3 17/27] COLO: Add new command parameter 'colo_nicname' 'colo_script' for net List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: hangaohuai@huawei.com, Li Zhijian , yunhong.jiang@intel.com, eddie.dong@intel.com, peter.huangpeng@huawei.com, dgilbert@redhat.com, Gao feng , stefanha@redhat.com, pbonzini@redhat.com On 2015/2/17 7:50, Eric Blake wrote: > On 02/11/2015 08:17 PM, zhanghailiang wrote: >> The 'colo_nicname' should be assigned with network name, >> for exmple, 'eth2'. It will be parameter of 'colo_script', > > s/exmple/example/ > >> 'colo_script' should be assigned with an scirpt path. > > s/an scirpt/a script/ > >> >> We parse these parameter in tap. > > Script files are in general very hard to secure. Libvirt marks any > domain that uses a script file for controlling networking as tainted, > because it cannot guarantee that the script did not do arbitrary > actions. Can you come up with any better solution that does not require > a script file, such as having management software responsible for > passing in an already-opened fd? > Hmm, it is a good idea to discard the script, i will look into it later ;) >> >> Signed-off-by: zhanghailiang >> Signed-off-by: Gao feng >> Signed-off-by: Li Zhijian >> --- >> include/net/net.h | 4 ++++ >> net/tap.c | 27 ++++++++++++++++++++++++--- >> qapi-schema.json | 8 +++++++- >> qemu-options.hx | 10 +++++++++- >> 4 files changed, 44 insertions(+), 5 deletions(-) >> > >> +++ b/qapi-schema.json >> @@ -2101,6 +2101,10 @@ >> # >> # @queues: #optional number of queues to be created for multiqueue capable tap >> # >> +# @colo_nicname: #optional the host physical nic for QEMU (Since 2.3) >> +# >> +# @colo_script: #optional the script file which used by COLO (Since 2.3) > > s/_/-/ in both parameter names, please. Since they are optional, it > might be worth documenting what they default to when not present. > OK, will fix that. thanks.