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,21 +6176,36 @@ Valid values for 'type' are:
-
KVM_SYSTEM_EVENT_SUSPEND
--
the
guest
has
requested
a
suspension
of
the
VM
.
If
KVM_CAP_SYSTEM_EVENT_DATA
is
present
,
the
'data'
field
can
contain
architecture
specific
information
for
the
system
-
level
event
.
Only
the
first
`
ndata
`
items
(
possibly
zero
)
of
the
data
array
are
valid
.
-
for
arm64
,
data
[
0
]
is
set
to
KVM_SYSTEM_EVENT_RESET_FLAG_PSCI_RESET2
if
the
guest
issued
a
SYSTEM_RESET2
call
according
to
v1
.1
of
the
PSCI
specification
.
-
for
RISC
-
V
,
data
[
0
]
is
set
to
the
value
of
the
second
argument
of
the
``
sbi_system_reset
``
call
.
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
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
.
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.
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:
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
...
...
@@ -6202,21 +6217,6 @@ For arm/arm64:
- 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
architecture specific information for the system-level event. Only
the first `ndata` items (possibly zero) of the data array are valid.
- for arm64, data[0] is set to KVM_SYSTEM_EVENT_RESET_FLAG_PSCI_RESET2 if
the guest issued a SYSTEM_RESET2 call according to v1.1 of the PSCI
specification.
- for RISC-V, data[0] is set to the value of the second argument of the
``sbi_system_reset`` call.
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
written if ndata is greater than 0.
::
/* KVM_EXIT_IOAPIC_EOI */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录