Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
186af6bb
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
186af6bb
编写于
5月 20, 2022
作者:
P
Paolo Bonzini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation: kvm: reorder ARM-specific section about KVM_SYSTEM_EVENT_SUSPEND
Signed-off-by:
N
Paolo Bonzini
<
pbonzini@redhat.com
>
上级
baec4f5a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
26 deletion
+26
-26
Documentation/virt/kvm/api.rst
Documentation/virt/kvm/api.rst
+26
-26
未找到文件。
Documentation/virt/kvm/api.rst
浏览文件 @
186af6bb
...
@@ -6176,32 +6176,6 @@ Valid values for 'type' are:
...
@@ -6176,32 +6176,6 @@ Valid values for 'type' are:
-
KVM_SYSTEM_EVENT_SUSPEND
--
the
guest
has
requested
a
suspension
of
-
KVM_SYSTEM_EVENT_SUSPEND
--
the
guest
has
requested
a
suspension
of
the
VM
.
the
VM
.
For
arm
/
arm64
:
--------------
KVM_SYSTEM_EVENT_SUSPEND
exits
are
enabled
with
the
KVM_CAP_ARM_SYSTEM_SUSPEND
VM
capability
.
If
a
guest
invokes
the
PSCI
SYSTEM_SUSPEND
function
,
KVM
will
exit
to
userspace
with
this
event
type
.
It
is
the
sole
responsibility
of
userspace
to
implement
the
PSCI
SYSTEM_SUSPEND
call
according
to
ARM
DEN0022D
.
b
5.19
"SYSTEM_SUSPEND"
.
KVM
does
not
change
the
vCPU
's state before exiting to userspace, so
the call parameters are left in-place in the vCPU registers.
Userspace is _required_ to take action for such an exit. It must
either:
- Honor the guest request to suspend the VM. Userspace can request
in-kernel emulation of suspension by setting the calling vCPU'
s
state
to
KVM_MP_STATE_SUSPENDED
.
Userspace
must
configure
the
vCPU
's
state according to the parameters passed to the PSCI function when
the calling vCPU is resumed. See ARM DEN0022D.b 5.19.1 "Intended use"
for details on the function parameters.
- Deny the guest request to suspend the VM. See ARM DEN0022D.b 5.19.2
"Caller responsibilities" for possible return values.
If
KVM_CAP_SYSTEM_EVENT_DATA
is
present
,
the
'data'
field
can
contain
If
KVM_CAP_SYSTEM_EVENT_DATA
is
present
,
the
'data'
field
can
contain
architecture
specific
information
for
the
system
-
level
event
.
Only
architecture
specific
information
for
the
system
-
level
event
.
Only
the
first
`
ndata
`
items
(
possibly
zero
)
of
the
data
array
are
valid
.
the
first
`
ndata
`
items
(
possibly
zero
)
of
the
data
array
are
valid
.
...
@@ -6217,6 +6191,32 @@ Previous versions of Linux defined a `flags` member in this struct. The
...
@@ -6217,6 +6191,32 @@ Previous versions of Linux defined a `flags` member in this struct. The
field
is
now
aliased
to
`
data
[
0
]`.
Userspace
can
assume
that
it
is
only
field
is
now
aliased
to
`
data
[
0
]`.
Userspace
can
assume
that
it
is
only
written
if
ndata
is
greater
than
0.
written
if
ndata
is
greater
than
0.
For
arm
/
arm64
:
--------------
KVM_SYSTEM_EVENT_SUSPEND
exits
are
enabled
with
the
KVM_CAP_ARM_SYSTEM_SUSPEND
VM
capability
.
If
a
guest
invokes
the
PSCI
SYSTEM_SUSPEND
function
,
KVM
will
exit
to
userspace
with
this
event
type
.
It
is
the
sole
responsibility
of
userspace
to
implement
the
PSCI
SYSTEM_SUSPEND
call
according
to
ARM
DEN0022D
.
b
5.19
"SYSTEM_SUSPEND"
.
KVM
does
not
change
the
vCPU
's state before exiting to userspace, so
the call parameters are left in-place in the vCPU registers.
Userspace is _required_ to take action for such an exit. It must
either:
- Honor the guest request to suspend the VM. Userspace can request
in-kernel emulation of suspension by setting the calling vCPU'
s
state
to
KVM_MP_STATE_SUSPENDED
.
Userspace
must
configure
the
vCPU
's
state according to the parameters passed to the PSCI function when
the calling vCPU is resumed. See ARM DEN0022D.b 5.19.1 "Intended use"
for details on the function parameters.
- Deny the guest request to suspend the VM. See ARM DEN0022D.b 5.19.2
"Caller responsibilities" for possible return values.
::
::
/* KVM_EXIT_IOAPIC_EOI */
/* KVM_EXIT_IOAPIC_EOI */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录