Skip to content

target/sparc: Block-init stores for the crypto feature

Stian Halseth qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. 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 filesSizeRepliesApplied
1/2target/sparc: Model block-initializing storestarget/sparc/translate.c+41 -22 replies
2/2linux-user/sparc: Report HWCAP_SPARC_CRYPTO for crypto CPU featurelinux-user/sparc/elfload.c+1 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéMark Cave-AylandRichard Henderson
1/2R-b R-b
2/2R-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.

Read the v2 thread

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