Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
c8a8c7eb
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,体验更适合开发者的 AI 搜索 >>
提交
c8a8c7eb
编写于
8月 07, 2018
作者:
P
Pavel Hrdina
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: extract hugepages-numa-default-dimm out of hugepages-numa
Signed-off-by:
N
Pavel Hrdina
<
phrdina@redhat.com
>
上级
47b8c6a0
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
80 addition
and
16 deletion
+80
-16
tests/qemuxml2argvdata/hugepages-numa-default-dimm.args
tests/qemuxml2argvdata/hugepages-numa-default-dimm.args
+30
-0
tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml
tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml
+45
-0
tests/qemuxml2argvdata/hugepages-numa.args
tests/qemuxml2argvdata/hugepages-numa.args
+1
-5
tests/qemuxml2argvdata/hugepages-numa.xml
tests/qemuxml2argvdata/hugepages-numa.xml
+0
-11
tests/qemuxml2argvtest.c
tests/qemuxml2argvtest.c
+2
-0
tests/qemuxml2xmloutdata/hugepages-numa-default-dimm.xml
tests/qemuxml2xmloutdata/hugepages-numa-default-dimm.xml
+1
-0
tests/qemuxml2xmltest.c
tests/qemuxml2xmltest.c
+1
-0
未找到文件。
tests/qemuxml2argvdata/hugepages-numa-default-dimm.args
0 → 100644
浏览文件 @
c8a8c7eb
LC_ALL=C \
PATH=/bin \
HOME=/home/test \
USER=test \
LOGNAME=test \
QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-x86_64 \
-name fedora \
-S \
-machine pc-i440fx-2.3,accel=tcg,usb=off,dump-guest-core=off \
-m size=1048576k,slots=16,maxmem=1099511627776k \
-smp 2,sockets=2,cores=1,threads=1 \
-mem-prealloc \
-mem-path /dev/hugepages2M/libvirt/qemu/-1-fedora \
-numa node,nodeid=0,cpus=0-1,mem=1024 \
-object memory-backend-file,id=memdimm0,prealloc=yes,\
mem-path=/dev/hugepages1G/libvirt/qemu/-1-fedora,size=1073741824,\
host-nodes=1-3,policy=bind \
-device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0 \
-uuid 63840878-0deb-4095-97e6-fc444d9bc9fa \
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-fedora/monitor.sock,\
server,nowait \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc \
-no-shutdown \
-no-acpi \
-usb
tests/qemuxml2argvdata/hugepages-numa-default-dimm.xml
0 → 100644
浏览文件 @
c8a8c7eb
<domain
type=
'qemu'
>
<name>
fedora
</name>
<uuid>
63840878-0deb-4095-97e6-fc444d9bc9fa
</uuid>
<maxMemory
slots=
'16'
unit=
'KiB'
>
1099511627776
</maxMemory>
<memory
unit=
'KiB'
>
1572863
</memory>
<currentMemory
unit=
'KiB'
>
1048576
</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu
placement=
'static'
>
2
</vcpu>
<os>
<type
arch=
'x86_64'
machine=
'pc-i440fx-2.3'
>
hvm
</type>
<boot
dev=
'hd'
/>
</os>
<cpu>
<numa>
<cell
id=
'0'
cpus=
'0-1'
memory=
'1048576'
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/qemu-system-x86_64
</emulator>
<controller
type=
'usb'
index=
'0'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x01'
function=
'0x2'
/>
</controller>
<controller
type=
'pci'
index=
'0'
model=
'pci-root'
/>
<input
type=
'mouse'
bus=
'ps2'
/>
<input
type=
'keyboard'
bus=
'ps2'
/>
<memballoon
model=
'none'
/>
<memory
model=
'dimm'
>
<source>
<nodemask>
1-3
</nodemask>
<pagesize
unit=
'KiB'
>
1048576
</pagesize>
</source>
<target>
<size
unit=
'KiB'
>
1048576
</size>
<node>
0
</node>
</target>
<address
type=
'dimm'
slot=
'0'
/>
</memory>
</devices>
</domain>
tests/qemuxml2argvdata/hugepages-numa.args
浏览文件 @
c8a8c7eb
...
...
@@ -8,15 +8,11 @@ QEMU_AUDIO_DRV=spice \
-name fedora \
-S \
-machine pc-i440fx-2.3,accel=tcg,usb=off,dump-guest-core=off \
-m
size=1048576k,slots=16,maxmem=1099511627776k
\
-m
1024
\
-smp 2,sockets=2,cores=1,threads=1 \
-mem-prealloc \
-mem-path /dev/hugepages2M/libvirt/qemu/-1-fedora \
-numa node,nodeid=0,cpus=0-1,mem=1024 \
-object memory-backend-file,id=memdimm0,prealloc=yes,\
mem-path=/dev/hugepages1G/libvirt/qemu/-1-fedora,size=1073741824,\
host-nodes=1-3,policy=bind \
-device pc-dimm,node=0,memdev=memdimm0,id=dimm0,slot=0 \
-uuid 63840878-0deb-4095-97e6-fc444d9bc9fa \
-no-user-config \
-nodefaults \
...
...
tests/qemuxml2argvdata/hugepages-numa.xml
浏览文件 @
c8a8c7eb
<domain
type=
'qemu'
>
<name>
fedora
</name>
<uuid>
63840878-0deb-4095-97e6-fc444d9bc9fa
</uuid>
<maxMemory
slots=
'16'
unit=
'KiB'
>
1099511627776
</maxMemory>
<memory
unit=
'KiB'
>
1572863
</memory>
<currentMemory
unit=
'KiB'
>
1048576
</currentMemory>
<memoryBacking>
...
...
@@ -97,15 +96,5 @@
<memballoon
model=
'virtio'
>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x08'
function=
'0x0'
/>
</memballoon>
<memory
model=
'dimm'
>
<source>
<nodemask>
1-3
</nodemask>
<pagesize
unit=
'KiB'
>
1048576
</pagesize>
</source>
<target>
<size
unit=
'KiB'
>
1048576
</size>
<node>
0
</node>
</target>
</memory>
</devices>
</domain>
tests/qemuxml2argvtest.c
浏览文件 @
c8a8c7eb
...
...
@@ -952,6 +952,8 @@ mymain(void)
QEMU_CAPS_SPICE
,
QEMU_CAPS_DEVICE_QXL
,
QEMU_CAPS_HDA_DUPLEX
,
QEMU_CAPS_USB_REDIR
,
QEMU_CAPS_OBJECT_MEMORY_FILE
);
DO_TEST
(
"hugepages-numa-default-dimm"
,
QEMU_CAPS_DEVICE_PC_DIMM
,
QEMU_CAPS_OBJECT_MEMORY_FILE
);
DO_TEST
(
"hugepages-pages"
,
...
...
tests/qemuxml2xmloutdata/hugepages-numa-default-dimm.xml
0 → 120000
浏览文件 @
c8a8c7eb
../qemuxml2argvdata/hugepages-numa-default-dimm.xml
\ No newline at end of file
tests/qemuxml2xmltest.c
浏览文件 @
c8a8c7eb
...
...
@@ -326,6 +326,7 @@ mymain(void)
DO_TEST
(
"pmu-feature-off"
,
NONE
);
DO_TEST
(
"hugepages-default"
,
NONE
);
DO_TEST
(
"hugepages-numa-default-dimm"
,
NONE
);
DO_TEST
(
"hugepages-pages"
,
NONE
);
DO_TEST
(
"hugepages-pages2"
,
NONE
);
DO_TEST
(
"hugepages-pages3"
,
NONE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录