Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
a4b71417
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,发现更多精彩内容 >>
未验证
提交
a4b71417
编写于
10月 29, 2018
作者:
Q
Qianqian Zhu
提交者:
GitHub
10月 29, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1383 from huangyum/hotplug_1578607
hotplug_mem: add new case to hotplug memory to different nodes
上级
43bf981b
e7125551
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
11 deletion
+15
-11
qemu/tests/cfg/hotplug_mem.cfg
qemu/tests/cfg/hotplug_mem.cfg
+8
-6
qemu/tests/hotplug_mem.py
qemu/tests/hotplug_mem.py
+7
-5
未找到文件。
qemu/tests/cfg/hotplug_mem.cfg
浏览文件 @
a4b71417
...
...
@@ -52,11 +52,13 @@
del numa_mem
del numa_cpus
numa_nodeid = 0
memdevs += " mem2"
mem
_
devs += " mem2"
node_dimm_mem2 = 0
node_dimm_mem1 = 1
numa_nodeid_node0 = 0
numa_nodeid_node1 = 1
node_dimm_plug1 = 0
node_dimm_plug2 = 1
variants:
- policy_default:
policy_mem = default
...
...
@@ -120,16 +122,16 @@
variants:
- buildin_memory:
mem_devs += " buildin"
target_mem = "buildin"
target_mem
s
= "buildin"
- pluged_memory:
plug_mem = "plug"
target_mem = "plug"
target_mem
s
= "plug"
- unused_memory:
target_mem = "unused"
mem_devs += " ${target_mem}"
target_mem
s
= "unused"
mem_devs += " ${target_mem
s
}"
use_mem_unused = no
- hotplug:
target_mem
= "plug
"
target_mem
s = "plug1 plug2
"
variants sub_test:
- vm_system_reset:
sub_type = boot
...
...
qemu/tests/hotplug_mem.py
浏览文件 @
a4b71417
...
...
@@ -67,7 +67,7 @@ class MemoryHotplugSimple(MemoryHotplugTest):
def
start_test
(
self
):
operation
=
self
.
params
[
"operation"
]
target_mem
=
self
.
params
[
"target_mem
"
]
target_mem
s
=
self
.
params
[
"target_mems
"
]
stage
=
self
.
params
.
get
(
"stage"
,
"before"
)
sub_test_runner
=
(
stage
==
'during'
and
[
...
...
@@ -80,11 +80,13 @@ class MemoryHotplugSimple(MemoryHotplugTest):
try
:
if
stage
!=
"after"
:
sub_test
=
sub_test_runner
()
func
(
vm
,
target_mem
)
self
.
check_memory
(
vm
)
for
target_mem
in
target_mems
.
split
():
func
(
vm
,
target_mem
)
self
.
check_memory
(
vm
)
else
:
func
(
vm
,
target_mem
)
self
.
check_memory
(
vm
)
for
target_mem
in
target_mems
.
split
():
func
(
vm
,
target_mem
)
self
.
check_memory
(
vm
)
sub_test
=
sub_test_runner
()
if
stage
==
"during"
:
sub_test
.
join
(
timeout
=
3600
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录