diff options
author | Marvin Liu <yong.liu@intel.com> | 2015-06-18 10:52:01 +0800 |
---|---|---|
committer | Marvin Liu <yong.liu@intel.com> | 2015-06-18 10:52:01 +0800 |
commit | 2788ddf5ad6568aa8db5c91980efca8197f5abaf (patch) | |
tree | 13418cb943a71bf453de1cd51af8a6530c3d0dcd /conf/scene | |
parent | f208b30ab7eddbd808e04762c879a12f9b4d0993 (diff) |
Add three typical virtual scenario configuration files
pf_passthrough.cfg for two pf devices pass-through into vm scene.
vf_passthrough for vf devices pass-through into vm. This two vfs created on
two pfs.
vf_passthrough_1 for vf devices pass-through into vm. This two vfs created on
same pf devices.
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Diffstat (limited to 'conf/scene')
-rw-r--r-- | conf/scene/pf_passthrough.cfg | 25 | ||||
-rw-r--r-- | conf/scene/vf_passthrough.cfg | 28 | ||||
-rw-r--r-- | conf/scene/vf_passthrough_1.cfg | 27 |
3 files changed, 80 insertions, 0 deletions
diff --git a/conf/scene/pf_passthrough.cfg b/conf/scene/pf_passthrough.cfg new file mode 100644 index 0000000..91b5eaf --- /dev/null +++ b/conf/scene/pf_passthrough.cfg @@ -0,0 +1,25 @@ +# vm configuration for pf passthrough cases +# numa 0,1,yes yes mean cpu numa match the first port +# skipcores list mean those core will not used by vm +# dut=vm_dut; mean vm_dut act as dut +# dut=dut; mean host dut act as dut +# portmap=cfg; mean vm_dut port map will be load from cfg +# portmap=auto; mean vm_dut will create portmap automatically +# devices = dev_gen/host/dev_gen+host not useful now +[scene] +suite = + dut=vm_dut,portmap=auto; + tester=tester; + type=kvm; +[vm] +cpu = + model=host,number=4,numa_aware=yes; +mem = + size=2048,hugepage=no; +disk = + file=/storage/vm-image/vm0.img; +device = + pf_idx=0,guestpci=auto; + pf_idx=1,guestpci=auto; +vnc = + displayNum=1; diff --git a/conf/scene/vf_passthrough.cfg b/conf/scene/vf_passthrough.cfg new file mode 100644 index 0000000..aa5493d --- /dev/null +++ b/conf/scene/vf_passthrough.cfg @@ -0,0 +1,28 @@ +# vm configuration for vf passthrough cases +# numa 0,1,yes yes mean cpu numa match the first port +# skipcores list mean those core will not used by vm +# dut=vm_dut; mean vm_dut act as dut +# dut=dut; mean host dut act as dut +# portmap=cfg; mean vm_dut port map will be load from cfg +# portmap=auto; mean vm_dut will create portmap automatically +# devices = dev_gen/host/dev_gen+host not useful now +[scene] +suite = + dut=vm_dut,portmap=auto; + tester=tester; + type=kvm; +[vm0] +cpu = + model=host,number=4,numa=auto,skipcores=0 1 2 3; +mem = + size=2048,hugepage=no; +disk = + file=/storage/vm-image/vm0.img; +dev_gen = + pf_idx=0,vf_num=2,driver=default; + pf_idx=1,vf_num=2,driver=default; +device = + vf_idx=0,pf_dev=0,guestpci=auto; + vf_idx=0,pf_dev=1,guestpci=auto; +vnc = + displayNum=1; diff --git a/conf/scene/vf_passthrough_1.cfg b/conf/scene/vf_passthrough_1.cfg new file mode 100644 index 0000000..afd760a --- /dev/null +++ b/conf/scene/vf_passthrough_1.cfg @@ -0,0 +1,27 @@ +# vm configuration for vf passthrough cases +# numa 0,1,yes yes mean cpu numa match the first port +# skipcores list mean those core will not used by vm +# dut=vm_dut; mean vm_dut act as dut +# dut=dut; mean host dut act as dut +# portmap=cfg; mean vm_dut port map will be load from cfg +# portmap=auto; mean vm_dut will create portmap automatically +# devices = dev_gen/host/dev_gen+host not useful now +[scene] +suite = + dut=vm_dut,portmap=auto; + tester=tester; + type=kvm; +[vm0] +cpu = + model=host,number=4,numa=auto,skipcores=0 1 2 3; +mem = + size=2048,hugepage=no; +disk = + file=/storage/vm-image/vm0.img; +dev_gen = + pf_idx=0,vf_num=2,driver=default; +device = + vf_idx=0,pf_dev=0,guestpci=auto; + vf_idx=1,pf_dev=0,guestpci=auto; +vnc = + displayNum=1; |