From: Yury Khrustalev <yury.khrustalev@arm.com>
To: libc-alpha@sourceware.org
Cc: wilco.dijkstra@arm.com, carlos@redhat.com, fweimer@redhat.com,
adhemerval.zanella@linaro.org
Subject: [PATCH 0/1] aarch64: clear ZA state of SME before clone and clone3
Date: Thu, 22 May 2025 12:48:27 +0100 [thread overview]
Message-ID: <20250522114828.2291047-1-yury.khrustalev@arm.com> (raw)
Call __libc_arm_za_disable before syscall to clear ZA state of SME for the
clone and clone3 syscalls.
I had to implement test for clone3() in a but hacky way, hopefully it's OK.
Checked on AArch64 and no regressions found. OK for trunk?
base commit: 4052d99ead
Yury Khrustalev (1):
aarch64: clear ZA state of SME before clone syscall
sysdeps/aarch64/Makefile | 7 ++
sysdeps/aarch64/tst-sme-clone.c | 93 +++++++++++++++
sysdeps/aarch64/tst-sme-clone3.c | 143 +++++++++++++++++++++++
sysdeps/aarch64/tst-sme-helper.h | 32 +++++
sysdeps/aarch64/tst-sme-za-state.c | 38 +-----
sysdeps/unix/sysv/linux/aarch64/clone.S | 11 ++
sysdeps/unix/sysv/linux/aarch64/clone3.S | 11 ++
7 files changed, 301 insertions(+), 34 deletions(-)
create mode 100644 sysdeps/aarch64/tst-sme-clone.c
create mode 100644 sysdeps/aarch64/tst-sme-clone3.c
--
2.39.5
next reply other threads:[~2025-05-22 11:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 11:48 Yury Khrustalev [this message]
2025-05-22 11:48 ` [PATCH 1/1] aarch64: clear ZA state of SME before clone syscall Yury Khrustalev
2025-05-22 12:29 ` enh
2025-05-22 12:55 ` Yury Khrustalev
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=20250522114828.2291047-1-yury.khrustalev@arm.com \
--to=yury.khrustalev@arm.com \
--cc=adhemerval.zanella@linaro.org \
--cc=carlos@redhat.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=wilco.dijkstra@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).