From: Janosch Frank <frankja@linux.ibm.com>
To: Steffen Eiden <seiden@linux.ibm.com>,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: Ingo Franzki <ifranzki@linux.ibm.com>,
Harald Freudenberger <freude@linux.ibm.com>,
Christoph Schlameuss <schlameuss@linux.ibm.com>,
Claudio Imbrenda <imbrenda@linux.ibm.com>
Subject: Re: [PATCH v2 2/2] s390/uv: Provide host-key hashes in sysfs
Date: Tue, 8 Oct 2024 14:12:04 +0200 [thread overview]
Message-ID: <e4808d4e-dc9a-44ec-a749-d30571ed6637@linux.ibm.com> (raw)
In-Reply-To: <20241002160418.2424889-3-seiden@linux.ibm.com>
On 10/2/24 6:04 PM, Steffen Eiden wrote:
> Utilize the new Query Ultravisor Keys UVC to give user space the
> information which host-keys are installed on the system.
>
> Create a new sysfs directory 'firmware/uv/keys' that contains the hash
> of the host-key and the backup host-key of that system. Additionally,
> the file 'all' contains the response from the UVC possibly containing
> more key-hashes than currently known.
>
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Two nits below.
> ---
> arch/s390/include/asm/uv.h | 16 +++++++++
> arch/s390/kernel/uv.c | 71 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 87 insertions(+)
>
[...]
> +struct uv_key_hash {
> + u64 dword[4];
> +} __packed __aligned(8);
> +
> +#define UVC_QUERY_KEYS_IDX_HK 0
> +#define UVC_QUERY_KEYS_IDX_BACK_HK 1
> +
> +/* Query Ultravisor Keys */
> +struct uv_cb_query_keys {
> + struct uv_cb_header header; /* 0x0000 */
> + u64 reserved08[3]; /* 0x0008 */
> + struct uv_key_hash keys[15]; /* 0x0020 */
s/keys/key_hash/ or something similar?
> +} __packed __aligned(8);
>
We could add a static size assert here.
prev parent reply other threads:[~2024-10-08 12:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 16:04 [PATCH v2 0/2] s390/uv: Provide host-key hashes in sysfs Steffen Eiden
2024-10-02 16:04 ` [PATCH v2 1/2] s390/uv: Refactor uv-sysfs creation Steffen Eiden
2024-10-08 14:33 ` Heiko Carstens
2024-10-02 16:04 ` [PATCH v2 2/2] s390/uv: Provide host-key hashes in sysfs Steffen Eiden
2024-10-08 12:12 ` Janosch Frank [this message]
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=e4808d4e-dc9a-44ec-a749-d30571ed6637@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=ifranzki@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=schlameuss@linux.ibm.com \
--cc=seiden@linux.ibm.com \
/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.