Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
7800d473
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看板
提交
7800d473
编写于
2月 16, 2015
作者:
P
Peter Krempa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
conf: numa: Add accessor to NUMA node's memory access mode
上级
d9a779a3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
3 deletion
+16
-3
src/conf/numa_conf.c
src/conf/numa_conf.c
+9
-1
src/conf/numa_conf.h
src/conf/numa_conf.h
+3
-0
src/libvirt_private.syms
src/libvirt_private.syms
+1
-0
src/qemu/qemu_command.c
src/qemu/qemu_command.c
+3
-2
未找到文件。
src/conf/numa_conf.c
浏览文件 @
7800d473
...
...
@@ -769,7 +769,7 @@ virDomainNumaDefCPUFormat(virBufferPtr buf,
virBufferAddLit
(
buf
,
"<numa>
\n
"
);
virBufferAdjustIndent
(
buf
,
2
);
for
(
i
=
0
;
i
<
ncells
;
i
++
)
{
memAccess
=
def
->
cells
[
i
].
memAccess
;
memAccess
=
virDomainNumaGetNodeMemoryAccessMode
(
def
,
i
)
;
if
(
!
(
cpustr
=
virBitmapFormat
(
virDomainNumaGetNodeCpumask
(
def
,
i
))))
return
-
1
;
...
...
@@ -832,3 +832,11 @@ virDomainNumaGetNodeCpumask(virCPUDefPtr numa,
{
return
numa
->
cells
[
node
].
cpumask
;
}
virNumaMemAccess
virDomainNumaGetNodeMemoryAccessMode
(
virCPUDefPtr
numa
,
size_t
node
)
{
return
numa
->
cells
[
node
].
memAccess
;
}
src/conf/numa_conf.h
浏览文件 @
7800d473
...
...
@@ -91,6 +91,9 @@ size_t virDomainNumaGetNodeCount(virCPUDefPtr numa)
virBitmapPtr
virDomainNumaGetNodeCpumask
(
virCPUDefPtr
numa
,
size_t
node
)
ATTRIBUTE_NONNULL
(
1
);
virNumaMemAccess
virDomainNumaGetNodeMemoryAccessMode
(
virCPUDefPtr
numa
,
size_t
node
)
ATTRIBUTE_NONNULL
(
1
);
/*
* Formatters
...
...
src/libvirt_private.syms
浏览文件 @
7800d473
...
...
@@ -631,6 +631,7 @@ virDomainNumaEquals;
virDomainNumaFree;
virDomainNumaGetNodeCount;
virDomainNumaGetNodeCpumask;
virDomainNumaGetNodeMemoryAccessMode;
virDomainNumaNew;
virDomainNumatuneFormatNodeset;
virDomainNumatuneFormatXML;
...
...
src/qemu/qemu_command.c
浏览文件 @
7800d473
...
...
@@ -4558,7 +4558,8 @@ qemuBuildMemoryBackendStr(unsigned long long size,
virDomainHugePagePtr
hugepage
=
NULL
;
virDomainNumatuneMemMode
mode
;
const
long
system_page_size
=
virGetSystemPageSizeKB
();
virNumaMemAccess
memAccess
=
def
->
cpu
->
cells
[
guestNode
].
memAccess
;
virNumaMemAccess
memAccess
=
virDomainNumaGetNodeMemoryAccessMode
(
def
->
cpu
,
guestNode
);
size_t
i
;
char
*
mem_path
=
NULL
;
virBitmapPtr
nodemask
=
NULL
;
...
...
@@ -7188,7 +7189,7 @@ qemuBuildNumaArgStr(virQEMUDriverConfigPtr cfg,
if
(
rc
==
0
)
needBackend
=
true
;
}
else
{
if
(
def
->
cpu
->
cells
[
i
].
memAccess
)
{
if
(
virDomainNumaGetNodeMemoryAccessMode
(
def
->
cpu
,
i
)
)
{
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
"%s"
,
_
(
"Shared memory mapping is not supported "
"with this QEMU"
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录