qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] hw/misc: Model ASPEED hash and crpyto engine
@ 2021-03-11 23:47 Joel Stanley
  2021-03-11 23:47 ` [PATCH v2 1/3] hw: Model ASPEED's Hash and Crypto Engine Joel Stanley
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Stanley @ 2021-03-11 23:47 UTC (permalink / raw)
  To: Cédric Le Goater, Thomas Huth, Laurent Vivier
  Cc: Andrew Jeffery, Paolo Bonzini, qemu-arm, qemu-devel,
	Peter Maydell

v2: Address review from Andrew and Phillepe. Adds a qtest.

This adds a model for the ASPEED hash and crypto engine (HACE) found on
all supported ASPEED SoCs.

The model uses Qemu's gcrypto API to perform the SHA and MD5 hashing
directly in the machine's emulated memory space, which I found a neat
use of Qemu's features.

It has been tested using u-boot and from Linux userspace, and v2 adds a
qtest for the model running as part of the ast2600-evb machine.

Joel Stanley (3):
  hw: Model ASPEED's Hash and Crypto Engine
  aspeed: Integrate HACE
  tests/qtest: Add test for Aspeed HACE

 docs/system/arm/aspeed.rst     |   2 +-
 include/hw/arm/aspeed_soc.h    |   3 +
 include/hw/misc/aspeed_hace.h  |  33 ++++
 hw/arm/aspeed_ast2600.c        |  14 ++
 hw/arm/aspeed_soc.c            |  15 ++
 hw/misc/aspeed_hace.c          | 312 +++++++++++++++++++++++++++++++++
 tests/qtest/aspeed_hace-test.c | 215 +++++++++++++++++++++++
 MAINTAINERS                    |   1 +
 hw/misc/meson.build            |   2 +-
 tests/qtest/meson.build        |   3 +
 10 files changed, 598 insertions(+), 2 deletions(-)
 create mode 100644 include/hw/misc/aspeed_hace.h
 create mode 100644 hw/misc/aspeed_hace.c
 create mode 100644 tests/qtest/aspeed_hace-test.c

-- 
2.30.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-12  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11 23:47 [PATCH v2 0/3] hw/misc: Model ASPEED hash and crpyto engine Joel Stanley
2021-03-11 23:47 ` [PATCH v2 1/3] hw: Model ASPEED's Hash and Crypto Engine Joel Stanley
2021-03-11 23:47 ` [PATCH v2 2/3] aspeed: Integrate HACE Joel Stanley
2021-03-11 23:47 ` [PATCH v2 3/3] tests/qtest: Add test for Aspeed HACE Joel Stanley
2021-03-12  5:53   ` Thomas Huth
2021-03-12  6:33     ` Joel Stanley

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 NNTP newsgroup(s).