target/sparc: Block-init stores for the crypto feature
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesIn review
- v12 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Test the alignment with TCG_COND_TSTNE (Richard)
- Skip offset 0 for 8-byte stores, which write it themselves (Richard). stba/stha/stwa at offset 0 still zero it: a T4 zeroes the rest of the first doubleword for those too.
- Rebased on master, now that the crypto instructions are in
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/sparc: Model block-initializing storestarget/ | +41 | 2 replies | |
| 2/2 | linux-user/sparc: Report HWCAP_SPARC_CRYPTO for crypto CPU featurelinux-user/ | +1 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Mark Cave-Ayland | Richard Henderson |
|---|---|---|---|
| 1/2 | R-b | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 0/2] target/sparc: Block-init stores for the crypto feature
With the crypto feature, guests treat the CPU as a T4 or later. On those CPUs a block-initializing store (ASI 0xe2 and the other twin ASIs) to the start of a 32-byte block also zeroes the rest of the block. glibc's niagara4 memset and Linux's NG4memset depend on it, and OpenSSL's T4 AES code uses the FP form (stdfa). Patch 1 models this for both forms; patch 2 then reports HWCAP_SPARC_CRYPTO in linux-user.
v2:
- Test the alignment with TCG_COND_TSTNE (Richard)
- Skip offset 0 for 8-byte stores, which write it themselves (Richard). stba/stha/stwa at offset 0 still zero it: a T4 zeroes the rest of the first doubleword for those too.
- Rebased on master, now that the crypto instructions are in
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Stian Halseth (2):
target/sparc: Model block-initializing stores linux-user/sparc: Report HWCAP_SPARC_CRYPTO for crypto CPU feature
linux-user/sparc/elfload.c | 1 + target/sparc/translate.c | 43 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 42 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0