From: Qian Xu <qian.q.xu@intel.com>
To: dts@dpdk.org
Subject: [dts] [DTS][PATCH 1/2] Add vhost-cuse parameters for virtio.
Date: Mon, 20 Jul 2015 12:58:44 +0800 [thread overview]
Message-ID: <1437368324-4367-1-git-send-email-qian.q.xu@intel.com> (raw)
Add vhost-cuse qemu start up parameters interface in the framework.
Signed-off-by: Qian Xu <qian.q.xu@intel.com>
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
reply other threads:[~2015-07-20 4:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1437368324-4367-1-git-send-email-qian.q.xu@intel.com \
--to=qian.q.xu@intel.com \
--cc=dts@dpdk.org \
/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).