All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yanteng Si <si.yanteng@linux.dev>
To: Shuo Zhao <zhaoshuo@cqsoftware.com.cn>, alexs@kernel.org, corbet@lwn.net
Cc: zhaoyuehui@cqsoftware.com.cn, zhangwei@cqsoftware.com.cn,
	maoyuxian@cqsoftware.com.cn, linux-doc@vger.kernel.org
Subject: Re: [PATCH v3 5/7] docs/zh_CN: Add tpm tpm_vtpm_proxy Chinese translation
Date: Fri, 24 Jan 2025 17:21:56 +0800	[thread overview]
Message-ID: <75dd7955-1216-4d20-926d-fe2b379b88a7@linux.dev> (raw)
In-Reply-To: <f9798eaec76b27cc02fa47970bf623879377d422.1737603330.git.zhaoshuo@cqsoftware.com.cn>




在 2025/1/23 13:17, Shuo Zhao 写道:
> Translate .../security/tpm/tpm_vtpm_proxy.rst into Chinese.
>
> Update the translation through commit 799a545bb938
> ("tpm: move documentation under Documentation/security")
>
> Signed-off-by: Shuo Zhao <zhaoshuo@cqsoftware.com.cn>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>

Thanks,
Yanteng
> ---
>   .../translations/zh_CN/security/tpm/index.rst |  2 +-
>   .../zh_CN/security/tpm/tpm_vtpm_proxy.rst     | 51 +++++++++++++++++++
>   2 files changed, 52 insertions(+), 1 deletion(-)
>   create mode 100644 Documentation/translations/zh_CN/security/tpm/tpm_vtpm_proxy.rst
>
> diff --git a/Documentation/translations/zh_CN/security/tpm/index.rst b/Documentation/translations/zh_CN/security/tpm/index.rst
> index 4ee8881a41a4..dd80816f8af8 100644
> --- a/Documentation/translations/zh_CN/security/tpm/index.rst
> +++ b/Documentation/translations/zh_CN/security/tpm/index.rst
> @@ -15,8 +15,8 @@
>      tpm_event_log
>      tpm-security
>      tpm_tis
> +   tpm_vtpm_proxy
>   
>   TODOLIST:
> -*   tpm_vtpm_proxy
>   *   xen-tpmfront
>   *   tpm_ftpm_tee
> diff --git a/Documentation/translations/zh_CN/security/tpm/tpm_vtpm_proxy.rst b/Documentation/translations/zh_CN/security/tpm/tpm_vtpm_proxy.rst
> new file mode 100644
> index 000000000000..bc92cfb684c3
> --- /dev/null
> +++ b/Documentation/translations/zh_CN/security/tpm/tpm_vtpm_proxy.rst
> @@ -0,0 +1,51 @@
> +.. SPDX-License-Identifier: GPL-2.0
> +.. include:: ../../disclaimer-zh_CN.rst
> +
> +:Original: Documentation/security/tpm/tpm_vtpm_proxy.rst
> +
> +:翻译:
> + 赵硕 Shuo Zhao <zhaoshuo@cqsoftware.com.cn>
> +
> +==========================
> +Linux容器的虚拟TPM代理驱动
> +==========================
> +
> +| 作者:
> +| Stefan Berger <stefanb@linux.vnet.ibm.com>
> +
> +本文档描述了用于Linux容器的虚拟可信平台模块(vTPM)代理设备驱动。
> +
> +介绍
> +====
> +
> +这项工作的目标是为每个Linux容器提供TPM功能。这使得程序能够像与物理系统
> +上的TPM交互一样,与容器中的TPM进行交互。每个容器都会获得一个唯一的、模
> +拟的软件TPM。
> +
> +设计
> +====
> +
> +为了使每个容器都能使用模拟的软件TPM,容器管理栈需要创建一对设备,其中
> +包括一个客户端TPM字符设备 ``/dev/tpmX`` (X=0,1,2...)和一个‘服务器端’
> +文件描述符。当文件描述符传被递给TPM模拟器时,前者通过创建具有适当主次
> +设备号的字符设备被移入容器,然后,容器内的软件可以使用字符设备发送TPM
> +命令,模拟器将通过文件描述符接收这些命令,并用它来发送响应。
> +
> +为了支持这一点,虚拟TPM代理驱动程序提供了一个设备 ``/dev/vtpmx`` ,该设备
> +用于通过ioctl创建设备对。ioctl将其作为配置设备的输入标志,例如这些标志指示
> +TPM模拟器是否支持TPM1.2或TPM2功能。ioctl的结果是返回‘服务器端’的文件描述符
> +以及创建的字符设备的主次设备号。此外,还会返回TPM字符设备的编号。例如,如果
> +创建了 ``/dev/tpm10`` ,则返回编号( ``dev_num`` )10。
> +
> +一旦设备被创建,驱动程序将立即尝试与TPM进行通信。来自驱动程序的所有命令
> +都可以从ioctl返回的文件描述符中读取。这些命令应该立即得到响应。
> +
> +UAPI
> +====
> +
> +该API在以下内核代码中:
> +
> +include/uapi/linux/vtpm_proxy.h
> +drivers/char/tpm/tpm_vtpm_proxy.c
> +
> +函数:vtpmx_ioc_new_dev


  reply	other threads:[~2025-01-24  9:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-23  5:17 [PATCH v3 0/7] Add all Chinese translations in the tpm directory Shuo Zhao
2025-01-23  5:17 ` [PATCH v3 1/7] docs/zh_CN: Add tpm index Chinese translation Shuo Zhao
2025-01-24  6:58   ` Yanteng Si
2025-01-23  5:17 ` [PATCH v3 2/7] docs/zh_CN: Add tpm tpm_event_log " Shuo Zhao
2025-01-24  7:01   ` Yanteng Si
2025-01-23  5:17 ` [PATCH v3 3/7] docs/zh_CN: Add tpm tpm-security " Shuo Zhao
2025-01-24  9:19   ` Yanteng Si
2025-01-23  5:17 ` [PATCH v3 4/7] docs/zh_CN: Add tpm tpm_tis " Shuo Zhao
2025-01-24  9:20   ` Yanteng Si
2025-01-23  5:17 ` [PATCH v3 5/7] docs/zh_CN: Add tpm tpm_vtpm_proxy " Shuo Zhao
2025-01-24  9:21   ` Yanteng Si [this message]
2025-01-23  5:17 ` [PATCH v3 6/7] docs/zh_CN: Add tpm xen-tpmfront " Shuo Zhao
2025-01-24  9:23   ` Yanteng Si
2025-01-23  5:17 ` [PATCH v3 7/7] docs/zh_CN: Add tpm tpm_ftpm_tee " Shuo Zhao
2025-01-24  9:24   ` Yanteng Si
2025-02-04 16:54 ` [PATCH v3 0/7] Add all Chinese translations in the tpm directory Jonathan Corbet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75dd7955-1216-4d20-926d-fe2b379b88a7@linux.dev \
    --to=si.yanteng@linux.dev \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=maoyuxian@cqsoftware.com.cn \
    --cc=zhangwei@cqsoftware.com.cn \
    --cc=zhaoshuo@cqsoftware.com.cn \
    --cc=zhaoyuehui@cqsoftware.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.