Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
78d7c3c5
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看板
提交
78d7c3c5
编写于
3月 25, 2013
作者:
P
Paolo Bonzini
提交者:
Eric Blake
4月 18, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu_conf: add new configuration key bridge_helper
Signed-off-by:
N
Paolo Bonzini
<
pbonzini@redhat.com
>
上级
5c1cfea4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
0 deletion
+14
-0
src/qemu/libvirtd_qemu.aug
src/qemu/libvirtd_qemu.aug
+1
-0
src/qemu/qemu.conf
src/qemu/qemu.conf
+8
-0
src/qemu/qemu_conf.c
src/qemu/qemu_conf.c
+3
-0
src/qemu/qemu_conf.h
src/qemu/qemu_conf.h
+1
-0
src/qemu/test_libvirtd_qemu.aug.in
src/qemu/test_libvirtd_qemu.aug.in
+1
-0
未找到文件。
src/qemu/libvirtd_qemu.aug
浏览文件 @
78d7c3c5
...
...
@@ -60,6 +60,7 @@ module Libvirtd_qemu =
let
process_entry
=
str_entry
"hugetlbfs_mount"
|
bool_entry
"clear_emulator_capabilities"
|
str_entry
"bridge_helper"
|
bool_entry
"set_process_name"
|
int_entry
"max_processes"
|
int_entry
"max_files"
...
...
src/qemu/qemu.conf
浏览文件 @
78d7c3c5
...
...
@@ -301,6 +301,14 @@
#hugetlbfs_mount = "/dev/hugepages"
# Path to the setuid helper for creating tap devices. This executable
# is used to create <source type='bridge'> interfaces when libvirtd is
# running unprivileged. libvirt invokes the helper directly, instead
# of using "-netdev bridge", for security reasons.
#bridge_helper = "/usr/libexec/qemu-bridge-helper"
# If clear_emulator_capabilities is enabled, libvirt will drop all
# privileged capabilities of the QEmu/KVM emulator. This is enabled by
# default.
...
...
src/qemu/qemu_conf.c
浏览文件 @
78d7c3c5
...
...
@@ -241,6 +241,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
}
}
#endif
cfg
->
bridgeHelperName
=
strdup
(
"/usr/libexec/qemu-bridge-helper"
);
cfg
->
clearEmulatorCapabilities
=
true
;
...
...
@@ -290,6 +291,7 @@ static void virQEMUDriverConfigDispose(void *obj)
VIR_FREE
(
cfg
->
hugetlbfsMount
);
VIR_FREE
(
cfg
->
hugepagePath
);
VIR_FREE
(
cfg
->
bridgeHelperName
);
VIR_FREE
(
cfg
->
saveImageFormat
);
VIR_FREE
(
cfg
->
dumpImageFormat
);
...
...
@@ -497,6 +499,7 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg,
GET_VALUE_BOOL
(
"auto_start_bypass_cache"
,
cfg
->
autoStartBypassCache
);
GET_VALUE_STR
(
"hugetlbfs_mount"
,
cfg
->
hugetlbfsMount
);
GET_VALUE_STR
(
"bridge_helper"
,
cfg
->
bridgeHelperName
);
GET_VALUE_BOOL
(
"mac_filter"
,
cfg
->
macFilter
);
...
...
src/qemu/qemu_conf.h
浏览文件 @
78d7c3c5
...
...
@@ -116,6 +116,7 @@ struct _virQEMUDriverConfig {
char
*
hugetlbfsMount
;
char
*
hugepagePath
;
char
*
bridgeHelperName
;
bool
macFilter
;
...
...
src/qemu/test_libvirtd_qemu.aug.in
浏览文件 @
78d7c3c5
...
...
@@ -49,6 +49,7 @@ module Test_libvirtd_qemu =
{ "auto_dump_bypass_cache" = "0" }
{ "auto_start_bypass_cache" = "0" }
{ "hugetlbfs_mount" = "/dev/hugepages" }
{ "bridge_helper" = "/usr/libexec/qemu-bridge-helper" }
{ "clear_emulator_capabilities" = "1" }
{ "set_process_name" = "1" }
{ "max_processes" = "0" }
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录