From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B025AC5FA for ; Wed, 24 Jun 2015 11:23:37 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 24 Jun 2015 02:23:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,671,1427785200"; d="scan'208";a="752286328" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 24 Jun 2015 02:23:35 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t5O9NYXe006069; Wed, 24 Jun 2015 17:23:34 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t5O9NWjN023370; Wed, 24 Jun 2015 17:23:34 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t5O9NVEZ023366; Wed, 24 Jun 2015 17:23:31 +0800 From: Yong Liu To: dts@dpdk.org Date: Wed, 24 Jun 2015 17:23:30 +0800 Message-Id: <1435137810-23334-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Qemu kvm module support user defined command parameter X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2015 09:23:38 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index 36622b5..482ba46 100644 --- a/framework/qemu_kvm.py +++ b/framework/qemu_kvm.py @@ -740,6 +740,15 @@ class QEMUKvm(VirtBase): daemon_boot_line = '-daemonize' self.__add_boot_line(daemon_boot_line) + def add_vm_usercmd(self, **options): + """ + usercmd: user self defined command line. + This command will be add into qemu boot command. + """ + if 'cmd' in options.keys(): + cmd = options['cmd'] + self.__add_boot_line(cmd) + def _start_vm(self): """ Start VM. -- 1.9.3