Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
34f51477
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看板
提交
34f51477
编写于
10月 04, 2014
作者:
M
Martin Kletzander
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
minor shmem clean-ups
Signed-off-by:
N
Martin Kletzander
<
mkletzan@redhat.com
>
上级
8f17d0ea
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
7 deletion
+5
-7
docs/formatdomain.html.in
docs/formatdomain.html.in
+1
-1
src/conf/domain_conf.c
src/conf/domain_conf.c
+2
-3
src/qemu/qemu_command.c
src/qemu/qemu_command.c
+2
-3
未找到文件。
docs/formatdomain.html.in
浏览文件 @
34f51477
...
...
@@ -5587,7 +5587,7 @@ qemu-kvm -net nic,model=? /dev/null
<p>
A shared memory device allows to share a memory region between
different virtual machines and the host.
<span
class=
"since"
>
Since 1.2.
9
, QEMU and KVM only
</span>
<span
class=
"since"
>
Since 1.2.
10
, QEMU and KVM only
</span>
</p>
<pre>
...
...
src/conf/domain_conf.c
浏览文件 @
34f51477
...
...
@@ -17603,7 +17603,7 @@ virDomainShmemDefFormat(virBufferPtr buf,
virDomainShmemDefPtr def,
unsigned int flags)
{
virBuffer
Asprintf
(buf, "<shmem name='%s'", def->name);
virBuffer
EscapeString
(buf, "<shmem name='%s'", def->name);
if (!def->size &&
!def->server.enabled &&
...
...
@@ -17618,8 +17618,7 @@ virDomainShmemDefFormat(virBufferPtr buf,
virBufferAdjustIndent(buf, 2);
if (def->size)
virBufferAsprintf(buf, "<size unit='M'>%llu</size>\n",
VIR_DIV_UP(def->size, 1024 * 1024));
virBufferAsprintf(buf, "<size unit='M'>%llu</size>\n", def->size >> 20);
if (def->server.enabled) {
virBufferAddLit(buf, "<server");
...
...
src/qemu/qemu_command.c
浏览文件 @
34f51477
...
...
@@ -7549,7 +7549,7 @@ qemuBuildShmemDevCmd(virCommandPtr cmd,
/*
* Thanks to our parsing code, we have a guarantee that the
* size is power of two and is at least a mebibyte in size.
* But because it may change inthe future, the checks are
* But because it may change in
the future, the checks are
* doubled in here.
*/
if
(
shmem
->
size
&
(
shmem
->
size
-
1
))
{
...
...
@@ -7562,8 +7562,7 @@ qemuBuildShmemDevCmd(virCommandPtr cmd,
_
(
"shmem size must be at least 1 MiB"
));
goto
error
;
}
virBufferAsprintf
(
&
buf
,
",size=%llum"
,
VIR_DIV_UP
(
shmem
->
size
,
1024
*
1024
));
virBufferAsprintf
(
&
buf
,
",size=%llum"
,
shmem
->
size
>>
20
);
}
if
(
!
shmem
->
server
.
enabled
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录