Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
3b2db514
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3b2db514
编写于
9月 21, 2015
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: Add test to validate that memory sizes don't get updated on migration
上级
bd874b6c
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
56 addition
and
3 deletion
+56
-3
tests/qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.args
...qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.args
+13
-0
tests/qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.xml
.../qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.xml
+33
-0
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+10
-3
未找到文件。
tests/qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.args
0 → 100644
浏览文件 @
3b2db514
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
/usr/bin/kvm -S -M pc -m 14338 -smp 32 \
-object memory-backend-ram,id=ram-node0,size=20482048,host-nodes=3,\
policy=preferred \
-numa node,nodeid=0,cpus=0,memdev=ram-node0 \
-object memory-backend-ram,id=ram-node1,size=675907584,host-nodes=0-7,\
policy=bind \
-numa node,nodeid=1,cpus=1-27,cpus=29,memdev=ram-node1 \
-object memory-backend-ram,id=ram-node2,size=24578457600,host-nodes=1-2,\
host-nodes=5,host-nodes=7,policy=bind \
-numa node,nodeid=2,cpus=28,cpus=30-31,memdev=ram-node2 \
-nographic -monitor unix:/tmp/test-monitor,server,nowait \
-no-acpi -boot c -usb -net none -serial none -parallel none -incoming stdio
tests/qemuxml2argvdata/qemuxml2argv-migrate-numa-unaligned.xml
0 → 100644
浏览文件 @
3b2db514
<domain
type=
'qemu'
>
<name>
QEMUGuest
</name>
<uuid>
9f4b6512-e73a-4a25-93e8-5307802821ce
</uuid>
<memory
unit=
'KiB'
>
14682468
</memory>
<currentMemory
unit=
'KiB'
>
14682468
</currentMemory>
<vcpu
placement=
'static'
>
32
</vcpu>
<numatune>
<memnode
cellid=
'0'
mode=
'preferred'
nodeset=
'3'
/>
<memory
mode=
'strict'
nodeset=
'0-7'
/>
<memnode
cellid=
'2'
mode=
'strict'
nodeset=
'1-2,5-7,^6'
/>
</numatune>
<os>
<type
arch=
'x86_64'
machine=
'pc'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<cpu>
<numa>
<cell
id=
'0'
cpus=
'0'
memory=
'20002'
unit=
'KiB'
/>
<cell
id=
'1'
cpus=
'1-27,29'
memory=
'660066'
unit=
'KiB'
/>
<cell
id=
'2'
cpus=
'28,30-31'
memory=
'24002400'
unit=
'KiB'
/>
</numa>
</cpu>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
restart
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/kvm
</emulator>
<controller
type=
'usb'
index=
'0'
/>
<controller
type=
'pci'
index=
'0'
model=
'pci-root'
/>
<memballoon
model=
'virtio'
/>
</devices>
</domain>
tests/qemuxml2argvtest.c
浏览文件 @
3b2db514
...
...
@@ -553,16 +553,19 @@ mymain(void)
FLAG_EXPECT_PARSE_ERROR | FLAG_EXPECT_ERROR, \
__VA_ARGS__)
# define DO_TEST_LINUX(name, ...) \
DO_TEST_LINUX_FULL(name, NULL, -1, 0, __VA_ARGS__)
# ifdef __linux__
/* This is a macro that invokes test only on Linux. It's
* meant to be called in those cases where qemuxml2argvmock
* cooperation is expected (e.g. we need a fixed time,
* predictable NUMA topology and so on). On non-Linux
* platforms the macro just consume its argument. */
# define DO_TEST_LINUX
(name, ...)
\
DO_TEST_FULL(name,
NULL, -1, 0,
__VA_ARGS__)
# define DO_TEST_LINUX
_FULL(name, ...)
\
DO_TEST_FULL(name, __VA_ARGS__)
# else
/* __linux__ */
# define DO_TEST_LINUX
(name, ...)
\
# define DO_TEST_LINUX
_FULL(name, ...)
\
do { \
const char *tmp ATTRIBUTE_UNUSED = name; \
} while (0)
...
...
@@ -1271,6 +1274,10 @@ mymain(void)
DO_TEST_FULL
(
"migrate"
,
"tcp:10.0.0.1:5000"
,
-
1
,
0
,
QEMU_CAPS_MIGRATE_QEMU_TCP
);
DO_TEST_LINUX_FULL
(
"migrate-numa-unaligned"
,
"stdio"
,
7
,
0
,
QEMU_CAPS_MIGRATE_KVM_STDIO
,
QEMU_CAPS_NUMA
,
QEMU_CAPS_OBJECT_MEMORY_RAM
);
DO_TEST
(
"qemu-ns"
,
NONE
);
DO_TEST
(
"smp"
,
QEMU_CAPS_SMP_TOPOLOGY
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录