[PATCH 0/2] hw/misc: Model ASPEED hash and crpyto engine

Joel Stanley posted 2 patches 3 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210303070331.70744-1-joel@jms.id.au
There is a newer version of this series
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         | 302 ++++++++++++++++++++++++++++++++++
hw/misc/meson.build           |   2 +-
7 files changed, 369 insertions(+), 2 deletions(-)
create mode 100644 include/hw/misc/aspeed_hace.h
create mode 100644 hw/misc/aspeed_hace.c
[PATCH 0/2] hw/misc: Model ASPEED hash and crpyto engine
Posted by Joel Stanley 3 years, 2 months ago
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.

Joel Stanley (2):
  hw: Model ASPEED's Hash and Crypto Engine
  aspeed: Integrate 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         | 302 ++++++++++++++++++++++++++++++++++
 hw/misc/meson.build           |   2 +-
 7 files changed, 369 insertions(+), 2 deletions(-)
 create mode 100644 include/hw/misc/aspeed_hace.h
 create mode 100644 hw/misc/aspeed_hace.c

-- 
2.30.1