Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a083d44c
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看板
提交
a083d44c
编写于
5月 10, 2011
作者:
L
Lai Jiangshan
提交者:
Eric Blake
5月 10, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
inject-nmi: Expose the new API in virsh
上级
b8c776eb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
39 addition
and
0 deletion
+39
-0
tools/virsh.c
tools/virsh.c
+35
-0
tools/virsh.pod
tools/virsh.pod
+4
-0
未找到文件。
tools/virsh.c
浏览文件 @
a083d44c
...
@@ -2911,6 +2911,40 @@ cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
...
@@ -2911,6 +2911,40 @@ cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
return
ret
;
return
ret
;
}
}
/*
* "inject-nmi" command
*/
static
const
vshCmdInfo
info_inject_nmi
[]
=
{
{
"help"
,
N_
(
"Inject NMI to the guest"
)},
{
"desc"
,
N_
(
"Inject NMI to the guest domain."
)},
{
NULL
,
NULL
}
};
static
const
vshCmdOptDef
opts_inject_nmi
[]
=
{
{
"domain"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"domain name, id or uuid"
)},
{
NULL
,
0
,
0
,
NULL
}
};
static
bool
cmdInjectNMI
(
vshControl
*
ctl
,
const
vshCmd
*
cmd
)
{
virDomainPtr
dom
;
int
ret
=
true
;
if
(
!
vshConnectionUsability
(
ctl
,
ctl
->
conn
))
return
false
;
if
(
!
(
dom
=
vshCommandOptDomain
(
ctl
,
cmd
,
NULL
)))
return
false
;
if
(
virDomainInjectNMI
(
dom
,
0
)
<
0
)
ret
=
false
;
virDomainFree
(
dom
);
return
ret
;
}
/*
/*
* "setmemory" command
* "setmemory" command
*/
*/
...
@@ -10720,6 +10754,7 @@ static const vshCmdDef domManagementCmds[] = {
...
@@ -10720,6 +10754,7 @@ static const vshCmdDef domManagementCmds[] = {
{
"setmaxmem"
,
cmdSetmaxmem
,
opts_setmaxmem
,
info_setmaxmem
},
{
"setmaxmem"
,
cmdSetmaxmem
,
opts_setmaxmem
,
info_setmaxmem
},
{
"setmem"
,
cmdSetmem
,
opts_setmem
,
info_setmem
},
{
"setmem"
,
cmdSetmem
,
opts_setmem
,
info_setmem
},
{
"setvcpus"
,
cmdSetvcpus
,
opts_setvcpus
,
info_setvcpus
},
{
"setvcpus"
,
cmdSetvcpus
,
opts_setvcpus
,
info_setvcpus
},
{
"inject-nmi"
,
cmdInjectNMI
,
opts_inject_nmi
,
info_inject_nmi
},
{
"shutdown"
,
cmdShutdown
,
opts_shutdown
,
info_shutdown
},
{
"shutdown"
,
cmdShutdown
,
opts_shutdown
,
info_shutdown
},
{
"start"
,
cmdStart
,
opts_start
,
info_start
},
{
"start"
,
cmdStart
,
opts_start
,
info_start
},
{
"suspend"
,
cmdSuspend
,
opts_suspend
,
info_suspend
},
{
"suspend"
,
cmdSuspend
,
opts_suspend
,
info_suspend
},
...
...
tools/virsh.pod
浏览文件 @
a083d44c
...
@@ -290,6 +290,10 @@ running B<virsh suspend>. When in a paused state the domain will still
...
@@ -290,6 +290,10 @@ running B<virsh suspend>. When in a paused state the domain will still
consume allocated resources like memory, but will not be eligible for
consume allocated resources like memory, but will not be eligible for
scheduling by the hypervisor.
scheduling by the hypervisor.
=item B<inject-nmi> I<domain-id>
Inject NMI to the guest
=item B<shutdown>
=item B<shutdown>
The domain is in the process of shutting down, i.e. the guest operating system
The domain is in the process of shutting down, i.e. the guest operating system
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录