From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 27B5DC3CE for ; Mon, 20 Jul 2015 06:58:58 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 19 Jul 2015 21:58:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,507,1432623600"; d="scan'208";a="750540212" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 19 Jul 2015 21:58:56 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6K4wsld003794; Mon, 20 Jul 2015 12:58:54 +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 t6K4wqVC004403; Mon, 20 Jul 2015 12:58:54 +0800 Received: (from qxu10@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6K4wqYc004399; Mon, 20 Jul 2015 12:58:52 +0800 From: Qian Xu To: dts@dpdk.org Date: Mon, 20 Jul 2015 12:58:44 +0800 Message-Id: <1437368324-4367-1-git-send-email-qian.q.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [DTS][PATCH 1/2] Add vhost-cuse parameters for virtio. 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: Mon, 20 Jul 2015 04:58:59 -0000 Add vhost-cuse qemu start up parameters interface in the framework. Signed-off-by: Qian Xu diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index e5da66e..4dd0647 100644 --- a/framework/qemu_kvm.py +++ b/framework/qemu_kvm.py @@ -638,6 +638,9 @@ class QEMUKvm(VirtBase): 'opt_id': '%s_net' % cuse_id} if 'opt_mac' in options.keys() and options['opt_mac']: opts['opt_mac'] = options['opt_mac'] + if 'opt_settings' in options.keys() and options['opt_settings']: + opts['opt_settings'] = options['opt_settings'] + self.__add_vm_virtio_net_pci(**opts) def __add_vm_virtio_net_pci(self, **options): @@ -648,6 +651,7 @@ class QEMUKvm(VirtBase): opt_mac: 00:00:00:00:01:03 opt_bus: pci.0 opt_addr: 0x3 + opt_settings: csum=off,gso=off,guest_csum=off """ dev_boot_line = '-device virtio-net-pci' separator = ',' @@ -666,6 +670,9 @@ class QEMUKvm(VirtBase): if 'opt_addr' in options.keys() and \ options['opt_addr']: dev_boot_line += separator + 'addr=%s' % options['opt_addr'] + if 'opt_settings' in options.keys() and \ + options['opt_settings']: + dev_boot_line += separator + '%s' % options['opt_settings'] if self.__string_has_multi_fields(dev_boot_line, separator): self.__add_boot_line(dev_boot_line) -- 2.1.0