Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
c24a94fa
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c24a94fa
编写于
8月 18, 2014
作者:
F
Feng Yang
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #130 from spcui/sr_iov
sr-iov bugs fix
上级
f296062b
5a31c968
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
7 deletion
+8
-7
qemu/tests/cfg/sr_iov.cfg
qemu/tests/cfg/sr_iov.cfg
+5
-4
qemu/tests/sr_iov_hotplug_negative.py
qemu/tests/sr_iov_hotplug_negative.py
+3
-3
未找到文件。
qemu/tests/cfg/sr_iov.cfg
浏览文件 @
c24a94fa
...
...
@@ -57,6 +57,7 @@
repeat_times = 500
test_timeout = 10000
- vf_guest_suspend:
no Host_RHEL.6
variants:
- vf_assigned:
type = guest_suspend
...
...
@@ -87,9 +88,9 @@
variants:
- vf_iommu_off:
start_vm = no
negative_msg = "
\'pci-assign\
' could not be initialized"
negative_msg = "
'pci-assign
' could not be initialized"
pci-assign_params = iommu
iommu =
0
iommu =
off
type = sr_iov_boot_negative
- no-kvm:
pci_assignable = vf
...
...
@@ -102,14 +103,14 @@
pci_assignable = vf
type = sr_iov_hotplug_negative
modprobe_cmd = modprobe -r igb
pci_addr = abc
pci_
invaild_
addr = abc
negative_msg = "Property 'pci-assign.addr' doesn't take value 'abc'"
- hotplug_iommu_off:
pci_assignable = vf
type = sr_iov_hotplug_negative
negative_msg = "Device 'pci-assign' could not be initialized"
hotplug_params = iommu
iommu =
0
iommu =
off
- more_than_max_vfs:
driver_option = "max_vfs=8"
type = boot
...
...
qemu/tests/sr_iov_hotplug_negative.py
浏览文件 @
c24a94fa
...
...
@@ -50,7 +50,7 @@ def run(test, params, env):
vm
.
verify_alive
()
rp_times
=
int
(
params
.
get
(
"repeat_times"
,
1
))
pci_model
=
params
.
get
(
"pci_model"
,
"pci-assign"
)
pci_
addr
=
params
.
get
(
"pci
_addr"
)
pci_
invaild_addr
=
params
.
get
(
"pci_invaild
_addr"
)
modprobe_cmd
=
params
.
get
(
"modprobe_cmd"
)
if
modprobe_cmd
:
...
...
@@ -80,9 +80,9 @@ def run(test, params, env):
"device_add"
)
for
j
in
range
(
rp_times
):
if
cmd_type
==
"pci_add"
:
pci_add_cmd
=
make_pci_add_cmd
(
pa_pci_ids
[
0
],
pci_addr
)
pci_add_cmd
=
make_pci_add_cmd
(
pa_pci_ids
[
0
],
pci_
invaild_
addr
)
elif
cmd_type
==
"device_add"
:
pci_add_cmd
=
make_device_add_cmd
(
pa_pci_ids
[
0
],
pci_addr
)
pci_add_cmd
=
make_device_add_cmd
(
pa_pci_ids
[
0
],
pci_
invaild_
addr
)
try
:
msg
=
"Adding pci device with command '%s'"
%
pci_add_cmd
error
.
context
(
msg
,
logging
.
info
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录