docs/zh_CN: add some virt docs translation
Subsystems (2)
cover docs/zh_CN: add some virt docs translation
Translate some Documentation/virt docs into Chinese.
Yanteng Si (8):
docs/zh_CN: add virt index translation docs/zh_CN: add virt paravirt_ops translation docs/zh_CN: add virt guest-halt-polling translation docs/zh_CN: add virt ne_overview translation docs/zh_CN: add virt acrn index translation docs/zh_CN: add virt acrn introduction translation docs/zh_CN: add virt acrn io-request translation docs/zh_CN: add virt acrn cpuid translation
Documentation/translations/zh_CN/index.rst | 2 +- .../translations/zh_CN/virt/acrn/cpuid.rst | 56 +++++++++++ .../translations/zh_CN/virt/acrn/index.rst | 25 +++++ .../zh_CN/virt/acrn/introduction.rst | 52 ++++++++++ .../zh_CN/virt/acrn/io-request.rst | 99 +++++++++++++++++++ .../zh_CN/virt/guest-halt-polling.rst | 87 ++++++++++++++++ .../translations/zh_CN/virt/index.rst | 38 +++++++ .../translations/zh_CN/virt/ne_overview.rst | 88 +++++++++++++++++ .../translations/zh_CN/virt/paravirt_ops.rst | 40 ++++++++ 9 files changed, 486 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/acrn/cpuid.rst create mode 100644 Documentation/translations/zh_CN/virt/acrn/index.rst create mode 100644 Documentation/translations/zh_CN/virt/acrn/introduction.rst create mode 100644 Documentation/translations/zh_CN/virt/acrn/io-request.rst create mode 100644 Documentation/translations/zh_CN/virt/guest-halt-polling.rst create mode 100644 Documentation/translations/zh_CN/virt/index.rst create mode 100644 Documentation/translations/zh_CN/virt/ne_overview.rst create mode 100644 Documentation/translations/zh_CN/virt/paravirt_ops.rst
Signature · 1 line
2.27.0
PATCH 1/8 docs/zh_CN: add virt index translation
Add virt to .../zh_CN/index and translate it into Chinese.
--- Documentation/translations/zh_CN/index.rst | 2 +- .../translations/zh_CN/virt/index.rst | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/index.rst
Documentation/translations/zh_CN/index.rst +1 -1
@@ -97,6 +97,7 @@ TODOList: iio/index sound/index filesystems/index + virt/index TODOList:
@@ -122,7 +123,6 @@ TODOList: * spi/index * w1/index * watchdog/index -* virt/index * input/index * hwmon/index * gpu/index
Documentation/translations/zh_CN/virt/index.rst new file +37 -0
@@ -0,0 +1,37 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/virt/index.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_index: + +=============== +Linux虚拟化支持 +=============== + +.. toctree:: + :maxdepth: 2 + +TODOLIST: + + kvm/index + uml/user_mode_linux_howto_v2 + paravirt_ops + guest-halt-polling + ne_overview + acrn/index + +.. only:: html and subproject + + Indices + ======= + + * :ref:`genindex`
Signature · 1 line
2.27.0
PATCH 2/8 docs/zh_CN: add virt paravirt_ops translation
In reply to Yanteng SiTranslate Documentation/core-api/paravirt_ops.rst into Chinese.
--- .../translations/zh_CN/virt/index.rst | 3 +- .../translations/zh_CN/virt/paravirt_ops.rst | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/paravirt_ops.rst
Documentation/translations/zh_CN/virt/index.rst +2 -1
@@ -20,11 +20,12 @@ Linux虚拟化支持 .. toctree:: :maxdepth: 2 + paravirt_ops + TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - paravirt_ops guest-halt-polling ne_overview acrn/index
Documentation/translations/zh_CN/virt/paravirt_ops.rst new file +40 -0
@@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/virt/paravirt_ops.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_paravirt_ops: + +============ +Paravirt_ops +============ + +Linux提供了对不同管理程序虚拟化技术的支持。历史上,为了支持不同的虚拟机管理平台 +(hypervisor,下文简称管理平台),需要不同的二进制内核,这个限制已经被pv_ops移 +除了。Linux pv_ops是一个虚拟化API,它能够支持不同的管理程序。它允许每个管理程序 +优先于关键操作,并允许单一的内核二进制文件在所有支持的执行环境中运行,包括本机——没 +有任何管理程序。 + +pv_ops提供了一组函数指针,代表了与低级关键指令和各领域高级功能相对应的操作。 +pv-ops允许在运行时进行优化,在启动时对低级关键操作进行二进制修补。 + +pv_ops操作被分为三类: + +- 简单的间接调用 + 这些操作对应于高水平的函数,众所周知,间接调用的开销并不十分重要。 + +- 间接调用,允许用二进制补丁进行优化 + 通常情况下,这些操作对应于低级别的关键指令。它们被频繁地调用,并且是性能关 + 键。开销是非常重要的。 + +- 一套用于手写汇编代码的宏程序 + 手写的汇编代码(.S文件)也需要准虚拟化,因为它们包括敏感指令或其中的一些代 + 码路径对性能非常关键。
Signature · 1 line
2.27.0
Re: [PATCH 2/8] docs/zh_CN: add virt paravirt_ops translation
Hi, Yanteng,
Quoted 2 lines · Yanteng Si
Translate
Documentation/core-api/paravirt_ops.rstinto Chinese.
Do you mean Documentation/virt/paravirt_ops.rst?
Quoted 58 lines
Signed-off-by Yanteng Si <[email protected]>--- .../translations/zh_CN/virt/index.rst | 3 +- .../translations/zh_CN/virt/paravirt_ops.rst | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/paravirt_ops.rstDocumentation/translations/zh_CN/virt/index.rst +2
-1@@ -20,11 +20,12 @@ Linux虚拟化支持 .. toctree:: :maxdepth: 2 + paravirt_ops + TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - paravirt_ops guest-halt-polling ne_overview acrn/indexDocumentation/translations/zh_CN/virt/paravirt_ops.rst new file +26
-0@@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/virt/paravirt_ops.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_paravirt_ops: + +============ +Paravirt_ops +============ + +Linux提供了对不同管理程序虚拟化技术的支持。历史上,为了支持不同的虚拟机管理平台 +(hypervisor,下文简称管理平台),需要不同的二进制内核,这个限制已经被pv_ops移 +除了。Linux pv_ops是一个虚拟化API,它能够支持不同的管理程序。它允许每个管理程序 +优先于关键操作,并允许单一的内核二进制文件在所有支持的执行环境中运行,包括本机——没 +有任何管理程序。 + +pv_ops提供了一组函数指针,代表了与低级关键指令和各领域高级功能相对应的操作。
Documentation/translations/zh_CN/virt/paravirt_ops.rst line 36
Quoted 10 lines
Documentation/translations/zh_CN/virt/paravirt_ops.rst new file +10
-0+pv-ops允许在运行时进行优化,在启动时对低级关键操作进行二进制修补。 + +pv_ops操作被分为三类: + +- 简单的间接调用 + 这些操作对应于高水平的函数,众所周知,间接调用的开销并不十分重要。 + +- 间接调用,允许用二进制补丁进行优化 + 通常情况下,这些操作对应于低级别的关键指令。它们被频繁地调用,并且是性能关 + 键。开销是非常重要的。
I think it would be better to say "对性能关键".
Quoted 7 lines
Documentation/translations/zh_CN/virt/paravirt_ops.rst new file +4
-1+ +- 一套用于手写汇编代码的宏程序 + 手写的汇编代码(.S文件)也需要准虚拟化,因为它们包括敏感指令或其中的一些代 + 码路径对性能非常关键。 --2.27.0
Thanks,
Feiyang
Re: [PATCH 2/8] docs/zh_CN: add virt paravirt_ops translation
Quoted 8 lines · 陈飞扬 <[email protected]> 于2021年7月19日周一 下午7:04写道:
Hi, Yanteng,
Quoted 2 lines · Yanteng Si
Translate
Documentation/core-api/paravirt_ops.rstinto Chinese.Do you mean
Documentation/virt/paravirt_ops.rst?
yeah. Fixed!
Quoted 63 lines
Quoted 63 lines
Signed-off-by Yanteng Si <[email protected]>--- .../translations/zh_CN/virt/index.rst | 3 +- .../translations/zh_CN/virt/paravirt_ops.rst | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/paravirt_ops.rstDocumentation/translations/zh_CN/virt/index.rst +2
-1@@ -20,11 +20,12 @@ Linux虚拟化支持 .. toctree:: :maxdepth: 2 + paravirt_ops + TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - paravirt_ops guest-halt-polling ne_overview acrn/indexDocumentation/translations/zh_CN/virt/paravirt_ops.rst new file +30
-0@@ -0,0 +1,40 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/virt/paravirt_ops.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_paravirt_ops: + +============ +Paravirt_ops +============ + +Linux提供了对不同管理程序虚拟化技术的支持。历史上,为了支持不同的虚拟机管理平台 +(hypervisor,下文简称管理平台),需要不同的二进制内核,这个限制已经被pv_ops移 +除了。Linux pv_ops是一个虚拟化API,它能够支持不同的管理程序。它允许每个管理程序 +优先于关键操作,并允许单一的内核二进制文件在所有支持的执行环境中运行,包括本机——没 +有任何管理程序。 + +pv_ops提供了一组函数指针,代表了与低级关键指令和各领域高级功能相对应的操作。 +pv-ops允许在运行时进行优化,在启动时对低级关键操作进行二进制修补。 + +pv_ops操作被分为三类: +
Quoted 8 lines
Documentation/translations/zh_CN/virt/paravirt_ops.rst line 36
Quoted 6 lines
Documentation/translations/zh_CN/virt/paravirt_ops.rst new file +6
-0+- 简单的间接调用 + 这些操作对应于高水平的函数,众所周知,间接调用的开销并不十分重要。 + +- 间接调用,允许用二进制补丁进行优化 + 通常情况下,这些操作对应于低级别的关键指令。它们被频繁地调用,并且是性能关 + 键。开销是非常重要的。I think it would be better to say "对性能关键".
great!
Thanks,
Yanteng
PATCH 3/8 docs/zh_CN: add virt guest-halt-polling translation
In reply to Yanteng SiTranslate Documentation/virt/guest-halt-polling.rst into Chinese.
--- .../zh_CN/virt/guest-halt-polling.rst | 87 +++++++++++++++++++ .../translations/zh_CN/virt/index.rst | 2 +- 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/guest-halt-polling.rst
Documentation/translations/zh_CN/virt/guest-halt-polling.rst new file +87 -0
@@ -0,0 +1,87 @@ +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/virt/guest-halt-polling.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_guest-halt-polling: + +======================================== +客户机停止轮询机制(Guest halt polling) +======================================== + +cpuidle_haltpoll驱动,与haltpoll管理器一起,允许客户机vcpus在停止前轮询 +一定的时间。 + +这为物理机侧的轮询提供了以下好处: + + 1) 在执行轮询时,POLL标志被设置,这允许远程vCPU在执行唤醒时避免发送 + IPI(以及处理IPI的相关成本)。 + + 2) 可以避免虚拟机退出的成本。 + +客户机侧轮询的缺点是,即使在物理机中的其他可运行任务中也会进行轮询。 + +其基本逻辑如下。一个全局值,即guest_halt_poll_ns,是由用户配置的,表示允 +许轮询的最大时间量。这个值是固定的。 + +每个vcpu都有一个可调整的guest_halt_poll_ns("per-cpu guest_halt_poll_ns"), +它由算法响应事件进行调整(解释如下)。 + +模块参数 +======== + +haltpoll管理器有5个可调整的模块参数: + +1) guest_halt_poll_ns: + +轮询停止前执行的最大时间,以纳秒为单位。 + +默认值: 200000 + +2) guest_halt_poll_shrink: + +当唤醒事件发生在全局的guest_halt_poll_ns之后,用于缩减每个CPU的guest_halt_poll_ns +的划分系数。 + +默认值: 2 + +3) guest_halt_poll_grow: + +当事件发生在per-cpu guest_halt_poll_ns之后但在global guest_halt_poll_ns之前, +用于增长per-cpu guest_halt_poll_ns的乘法系数。 + +默认值: 2 + +4) guest_halt_poll_grow_start: + +在系统空闲的情况下,每个cpu guest_halt_poll_ns最终达到零。这个值设置了增长时的 +初始每cpu guest_halt_poll_ns。这个值可以从10000开始增加,以避免在最初的增长阶 +段出现失误。: + +10k, 20k, 40k, ... (例如,假设guest_halt_poll_grow=2). + +默认值: 50000 + +5) guest_halt_poll_allow_shrink: + +允许缩减的Bool参数。设置为N以避免它(一旦达到全局的guest_halt_poll_ns值,每CPU的 +guest_halt_poll_ns将保持高位)。 + +默认值: Y + +模块参数可以从Debugfs文件中设置,在:: + + /sys/module/haltpoll/parameters/ + +进一步说明 +========== + +- 在设置guest_halt_poll_ns参数时应该小心,因为一个大的值有可能使机器上的cpu使用率 + 达到100%,否则几乎是完全空闲的。
Documentation/translations/zh_CN/virt/index.rst +1 -1
@@ -21,12 +21,12 @@ Linux虚拟化支持 :maxdepth: 2 paravirt_ops + guest-halt-polling TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - guest-halt-polling ne_overview acrn/index
Signature · 1 line
2.27.0
PATCH 4/8 docs/zh_CN: add virt ne_overview translation
In reply to Yanteng SiTranslate Documentation/core-api/ne_overview.rst into Chinese.
--- .../translations/zh_CN/virt/index.rst | 2 +- .../translations/zh_CN/virt/ne_overview.rst | 88 +++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/ne_overview.rst
Documentation/translations/zh_CN/virt/index.rst +1 -1
@@ -22,12 +22,12 @@ Linux虚拟化支持 paravirt_ops guest-halt-polling + ne_overview TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - ne_overview acrn/index .. only:: html and subproject
Documentation/translations/zh_CN/virt/ne_overview.rst new file +88 -0
88 lines not on this page · raw message
Signature · 1 line
2.27.0
PATCH 5/8 docs/zh_CN: add virt acrn index translation
In reply to Yanteng SiTranslate Documentation/virt/acrn/index.rst into Chinese.
--- .../translations/zh_CN/virt/acrn/index.rst | 27 +++++++++++++++++++ .../translations/zh_CN/virt/index.rst | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/acrn/index.rst
Documentation/translations/zh_CN/virt/acrn/index.rst new file +27 -0
@@ -0,0 +1,27 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/virt/acrn/index.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_acrn_index: + +============ +ACRN管理平台 +============ + +.. toctree:: + :maxdepth: 1 + +TODOLIST: + + introduction + io-request + cpuid
Documentation/translations/zh_CN/virt/index.rst +1 -1
@@ -23,12 +23,12 @@ Linux虚拟化支持 paravirt_ops guest-halt-polling ne_overview + acrn/index TODOLIST: kvm/index uml/user_mode_linux_howto_v2 - acrn/index .. only:: html and subproject
Signature · 1 line
2.27.0
PATCH 6/8 docs/zh_CN: add virt acrn introduction translation
In reply to Yanteng SiTranslate Documentation/core-api/introduction.rst into Chinese.
--- .../translations/zh_CN/virt/acrn/index.rst | 4 +- .../zh_CN/virt/acrn/introduction.rst | 52 +++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/acrn/introduction.rst
Documentation/translations/zh_CN/virt/acrn/index.rst +3 -1
@@ -20,8 +20,10 @@ ACRN管理平台 .. toctree:: :maxdepth: 1 + introduction + TODOLIST: - introduction + io-request cpuid
Documentation/translations/zh_CN/virt/acrn/introduction.rst new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.27.0
PATCH 7/8 docs/zh_CN: add virt acrn io-request translation
In reply to Yanteng SiTranslate Documentation/virt/acrn/io-request.rst into Chinese.
--- .../translations/zh_CN/virt/acrn/index.rst | 3 +- .../zh_CN/virt/acrn/io-request.rst | 99 +++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 Documentation/translations/zh_CN/virt/acrn/io-request.rst
Documentation/translations/zh_CN/virt/acrn/index.rst +2 -1
@@ -21,9 +21,10 @@ ACRN管理平台 :maxdepth: 1 introduction + io-request TODOLIST: - io-request + cpuid
Documentation/translations/zh_CN/virt/acrn/io-request.rst new file +99 -0
99 lines not on this page · raw message
Signature · 1 line
2.27.0
PATCH 8/8 docs/zh_CN: add virt acrn cpuid translation
In reply to Yanteng SiTranslate Documentation/virt/acrn/cpuid.rst into Chinese.
--- .../translations/zh_CN/virt/acrn/cpuid.rst | 56 +++++++++++++++++++ .../translations/zh_CN/virt/acrn/index.rst | 5 -- 2 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 Documentation/translations/zh_CN/virt/acrn/cpuid.rst
Documentation/translations/zh_CN/virt/acrn/cpuid.rst new file +56 -0
@@ -0,0 +1,56 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../../disclaimer-zh_CN.rst + +:Original: Documentation/virt/acrn/cpuid.rst + +:翻译: + + 司延腾 Yanteng Si <[email protected]> + +:校译: + + + +.. _cn_virt_acrn_cpuid: + +============== +ACRN CPUID位域 +============== + +在ACRN管理平台上运行的客户虚拟机可以使用CPUID检查其一些功能。 + +ACRN的cpuid函数是: + +函数: 0x40000000 + +返回:: + + eax = 0x40000010 + ebx = 0x4e524341 + ecx = 0x4e524341 + edx = 0x4e524341 + +注意,ebx,ecx和edx中的这个值对应于字符串“ACRNACRNACRN”。eax中的值对应于这个叶子 +中存在的最大cpuid函数,如果将来有更多的函数加入,将被更新。 + +函数: define ACRN_CPUID_FEATURES (0x40000001) + +返回:: + + ebx, ecx, edx + eax = an OR'ed group of (1 << flag) + +其中 ``flag`` 的定义如下: + +================================= =========== ================================ +标志 值 描述 +================================= =========== ================================ +ACRN_FEATURE_PRIVILEGED_VM 0 客户虚拟机是一个有特权的虚拟机 +================================= =========== ================================ + +函数: 0x40000010 + +返回:: + + ebx, ecx, edx + eax = (Virtual) TSC frequency in kHz.
Documentation/translations/zh_CN/virt/acrn/index.rst +0 -5
@@ -22,9 +22,4 @@ ACRN管理平台 introduction io-request - -TODOLIST: - - - cpuid
Signature · 1 line
2.27.0