From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 53EB9C31A for ; Fri, 22 May 2015 11:04:59 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 22 May 2015 02:04:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,474,1427785200"; d="scan'208";a="730110235" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 22 May 2015 02:04:57 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4M94t8v004135; Fri, 22 May 2015 17:04:55 +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 t4M94rI6014441; Fri, 22 May 2015 17:04:55 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4M94rmU014437; Fri, 22 May 2015 17:04:53 +0800 From: "Jiajia, Sun" To: dts@dpdk.org Date: Fri, 22 May 2015 17:04:10 +0800 Message-Id: <1432285452-14286-18-git-send-email-sunx.jiajia@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1432285452-14286-1-git-send-email-sunx.jiajia@intel.com> References: <1432285452-14286-1-git-send-email-sunx.jiajia@intel.com> Subject: [dts] [PATCH v2 17/19] Add a global virtualization config and a config related to SRIOV KVM suite 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: Fri, 22 May 2015 09:05:00 -0000 From: sjiajiax Signed-off-by: sjiajiax --- conf/sriov_kvm.cfg | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++ conf/virt_global.cfg | 24 ++++++++ 2 files changed, 188 insertions(+) create mode 100644 conf/sriov_kvm.cfg create mode 100644 conf/virt_global.cfg diff --git a/conf/sriov_kvm.cfg b/conf/sriov_kvm.cfg new file mode 100644 index 0000000..8db36bb --- /dev/null +++ b/conf/sriov_kvm.cfg @@ -0,0 +1,164 @@ +# QEMU options +# name +# name: vm0 +# +# enable_kvm +# enable: [yes | no] +# +# cpu +# model: [host | core2duo | ...] +# usage: +# choose model value from the command +# qemu-system-x86_64 -cpu help +# number: '4' #number of vcpus +# cpupin: '3 4 5 6' # host cpu list +# +# mem +# size: 1024 +# +# disk +# file: /path/to/image/test.img +# +# net +# type: [nic | user | tap | bridge | ...] +# nic +# opt_vlan: 0 +# note: Default is 0. +# opt_macaddr: 00:00:00:00:01:01 +# note: if creating a nic, it`s better to specify a MAC, +# else it will get a random number. +# opt_model:["e1000" | "virtio" | "i82551" | ...] +# note: Default is e1000. +# opt_name: 'nic1' +# opt_addr: '' +# note: PCI cards only. +# opt_vectors: +# note: This option currently only affects virtio cards. +# user +# opt_vlan: 0 +# note: default is 0. +# opt_hostfwd: [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport +# note: If not specified, it will be setted automatically. +# tap +# opt_vlan: 0 +# note: default is 0. +# opt_br: br0 +# note: if choosing tap, need to specify bridge name, +# else it will be br0. +# opt_script: QEMU_IFUP_PATH +# note: if not specified, default is self.QEMU_IFUP_PATH. +# opt_downscript: QEMU_IFDOWN_PATH +# note: if not specified, default is self.QEMU_IFDOWN_PATH. +# +# device +# driver: [pci-assign | virtio-net-pci | ...] +# pci-assign +# prop_host: 08:00.0 +# prop_addr: 00:00:00:00:01:02 +# virtio-net-pci +# prop_netdev: mynet1 +# prop_id: net1 +# prop_mac: 00:00:00:00:01:03 +# prop_bus: pci.0 +# prop_addr: 0x3 +# +# monitor +# port: 6061 +# note: if adding monitor to vm, need to specicy +# this port, else it will get a free port +# on the host machine. +# +# qga +# enable: [yes | no] +# +# serial_port +# enable: [yes | no] +# +# vnc +# displayNum: 1 +# note: you can choose a number not used on the host. +# +# daemon +# enable: 'yes' +# note: +# By default VM will start with the daemonize status. +# Not support starting it on the stdin now. + + +# vm configuration for pmd sriov case +[vm0] +cpu = + model=host,number=4,cpupin=5 6 7 8; +disk = + file=/home/image/vdisk01-sriov-fc20.img; +login = + user=root,password=tester; +net = + type=nic,opt_vlan=0; + type=user,opt_vlan=0; +monitor = + port=; +qga = + enable=yes; +vnc = + displayNum=1; +daemon = + enable=yes; + +[vm1] +cpu = + model=host,number=4,cpupin=9 10 11 12; +disk = + file=/home/image/vdisk02-sriov-fc20.img; +login = + user=root,password=tester; +net = + type=nic,opt_vlan=1; + type=user,opt_vlan=1; +monitor = + port=; +qga = + enable=yes; +vnc = + displayNum=2; +daemon = + enable=yes; + +[vm2] +cpu = + model=host,number=4,cpupin=13 14 15 16; +disk = + file=/home/image/vdisk03-ivshmem-fc20.img; +login = + user=root,password=tester; +net = + type=nic,opt_vlan=3; + type=tap,opt_vlan=3,opt_br=br0; +monitor = + port=; +qga = + enable=yes; +vnc = + displayNum=3; +daemon = + enable=yes; + +[vm3] +cpu = + model=host,number=4,cpupin=17 18 19 20; +disk = + file=/home/image/vdisk04-ivshmem-fc20.img; +login = + user=root,password=tester; +net = + type=nic,opt_vlan=4; + type=tap,opt_vlan=4,opt_br=br0; +monitor = + port=; +qga = + enable=yes; +vnc = + displayNum=4; +daemon = + enable=yes; + diff --git a/conf/virt_global.cfg b/conf/virt_global.cfg new file mode 100644 index 0000000..f26a90c --- /dev/null +++ b/conf/virt_global.cfg @@ -0,0 +1,24 @@ +# virtualization global configurations +#[LIBVIRT] +#[KVM] +#[XEN] +[LIBVIRT] +cpu = + number=4,cpupin=3 4 5 6; +mem = + size=2048; +net = + local=unused +[KVM] +cpu = + model=host,number=4,cpupin=3 4 5 6; +mem = + size=2048; +[XEN] +cpu = + number=4,cpupin=3 4 5 6; +mem = + size=2048; +vif = + mac=random,bridge=br0 + -- 1.9.3