* [dts] [DTS][PATCH 1/2] Add vhost-cuse parameters for virtio.
@ 2015-07-20 4:58 Qian Xu
0 siblings, 0 replies; only message in thread
From: Qian Xu @ 2015-07-20 4:58 UTC (permalink / raw)
To: dts
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-20 4:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 4:58 [dts] [DTS][PATCH 1/2] Add vhost-cuse parameters for virtio Qian Xu
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).