docs/zh_CN: add some virt docs translation
Subsystems (2)
v4 cover docs/zh_CN: add some virt docs translation
v4:
* Modified some words under Alex's advices;
* pick Alex's Review-by tag for [patch 5-8/8]
v3:
* Modified some words under Alex's advices;
* add 校译者(proofreading) sign.If you don't want me to do this, please let me know
* pick Alex's Review-by tag for [patch 1-4/8]
v2:
patch 2/8:
* Modified some words under Feiyang's advices;
* add 校译者(proofreading) sign.If you don't want me to do this, please let me know.
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 | 41 ++++++++ 9 files changed, 487 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 v4 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
@@ -102,6 +102,7 @@ TODOList: iio/index sound/index filesystems/index + virt/index TODOList:
@@ -127,7 +128,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]> + +:校译: + + 时奎亮 Alex Shi <[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 v4 2/8 docs/zh_CN: add virt paravirt_ops translation
In reply to Yanteng SiTranslate Documentation/virt/paravirt_ops.rst into Chinese.
--- .../translations/zh_CN/virt/index.rst | 3 +- .../translations/zh_CN/virt/paravirt_ops.rst | 41 +++++++++++++++++++ 2 files changed, 43 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 +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.27.0
PATCH v4 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]> + +:校译: + + 时奎亮 Alex Shi <[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 v4 4/8 docs/zh_CN: add virt ne_overview translation
In reply to Yanteng SiTranslate Documentation/virt/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 v4 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]> + +:校译: + + 时奎亮 Alex Shi <[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 v4 6/8 docs/zh_CN: add virt acrn introduction translation
In reply to Yanteng SiTranslate Documentation/virt/acrn/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 v4 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 v4 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]> + +:校译: + + 时奎亮 Alex Shi <[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
Jonathan Corbet
maintainerQuoted 18 lines · Yanteng Si
v4:
* Modified some words under Alex's advices;
* pick Alex's Review-by tag for [patch 5-8/8]v3:
* Modified some words under Alex's advices;
* add 校译者(proofreading) sign.If you don't want me to do this, please let me know
* pick Alex's Review-by tag for [patch 1-4/8]v2:
patch 2/8:
* Modified some words under Feiyang's advices;
* add 校译者(proofreading) sign.If you don't want me to do this, please let me know.
Quoted 9 lines
Yanteng Si (8):
docs/zh_CN: add virt index translation docs/zh_CN: add virtparavirt_opstranslation docs/zh_CN: add virt guest-halt-polling translation docs/zh_CN: add virtne_overviewtranslation 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
Set applied, thanks.
jon