qemu/include/hw/misc
Alejandro Zeise 4c1d0af4a2 hw/misc/aspeed_hace: Fix SG Accumulative hashing
Make the Aspeed HACE module use the new qcrypto accumulative hashing functions
when in scatter-gather accumulative mode. A hash context will maintain a
"running-hash" as each scatter-gather chunk is received.

Previously each scatter-gather "chunk" was cached
so the hash could be computed once the final chunk was received.
However, the cache was a shallow copy, so once the guest overwrote the
memory provided to HACE the final hash would not be correct.

Possibly related to: https://gitlab.com/qemu-project/qemu/-/issues/1121
Buglink: https://github.com/openbmc/qemu/issues/36

Signed-off-by: Alejandro Zeise <alejandro.zeise@seagate.com>
[ clg: - Checkpatch fixes
       - Reworked qcrypto_hash*() error reports in do_hash_operation() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Reviewed-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
2024-10-24 07:57:47 +02:00
..
macio hw/ide/macio: switch from using qemu_allocate_irq() to qdev input GPIOs 2024-07-02 06:58:48 +02:00
a9scu.h
allwinner-a10-ccm.h hw/misc: Allwinner-A10 Clock Controller Module Emulation 2023-01-12 16:50:19 +00:00
allwinner-a10-dramc.h hw/misc: Allwinner A10 DRAM Controller Emulation 2023-01-12 16:50:19 +00:00
allwinner-cpucfg.h
allwinner-h3-ccu.h
allwinner-h3-dramc.h
allwinner-h3-sysctrl.h
allwinner-r40-ccu.h hw/arm/allwinner-r40: add Clock Control Unit 2023-06-06 10:19:31 +01:00
allwinner-r40-dramc.h hw/arm/allwinner-r40: add SDRAM controller device 2023-06-06 10:19:32 +01:00
allwinner-sid.h
allwinner-sramc.h hw: arm: allwinner-sramc: Add SRAM Controller support for R40 2023-06-06 10:19:33 +01:00
arm11scu.h
arm_integrator_debug.h
armsse-cpu-pwrctrl.h
armsse-cpuid.h
armsse-mhu.h
armv7m_ras.h
aspeed_hace.h hw/misc/aspeed_hace: Fix SG Accumulative hashing 2024-10-24 07:57:47 +02:00
aspeed_i3c.h
aspeed_lpc.h Don't include headers already included by qemu/osdep.h 2023-02-08 07:28:05 +01:00
aspeed_peci.h
aspeed_sbc.h
aspeed_scu.h aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC 2024-07-21 07:46:38 +02:00
aspeed_sdmc.h aspeed/sdmc: Add AST2700 support 2024-06-16 21:08:54 +02:00
aspeed_sli.h aspeed/sli: Add AST2700 support 2024-06-16 21:08:54 +02:00
aspeed_xdma.h
auxbus.h hw/i2c: spelling fixes 2023-08-31 19:47:43 +02:00
avr_power.h
bcm2835_cprman_internals.h
bcm2835_cprman.h
bcm2835_mbox_defs.h
bcm2835_mbox.h
bcm2835_mphi.h
bcm2835_powermgt.h
bcm2835_property.h hw/misc: Implement mailbox properties for customer OTP and device specific private keys 2024-07-01 12:48:55 +01:00
bcm2835_rng.h
bcm2835_thermal.h
djmemc.h q800: add djMEMC memory controller 2023-10-06 10:33:43 +02:00
empty_slot.h
grlib_ahb_apb_pnp.h
imx6_ccm.h
imx6_src.h
imx6ul_ccm.h
imx7_ccm.h
imx7_gpr.h
imx7_snvs.h fsl-imx: add simple RTC emulation for i.MX6 and i.MX7 boards 2023-12-19 18:03:32 +00:00
imx7_src.h Add i.MX7 SRC device implementation 2023-08-31 09:45:17 +01:00
imx25_ccm.h
imx31_ccm.h
imx_ccm.h
imx_rngc.h
iosb.h q800: add IOSB subsystem 2023-10-06 10:33:43 +02:00
iotkit-secctl.h
iotkit-sysctl.h
iotkit-sysinfo.h
ivshmem.h
lasi.h lasi: Add reset I/O ports for LASI audio and FDC 2024-02-11 13:20:23 +01:00
led.h
mac_via.h mac_via: work around underflow in TimeDBRA timing loop in SETUPTIMEK 2023-10-06 10:33:43 +02:00
mchp_pfsoc_dmc.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mchp_pfsoc_ioscb.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mchp_pfsoc_sysreg.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
mips_cmgcr.h hw/mips: Declare all length properties as unsigned 2023-03-08 00:37:48 +01:00
mips_cpc.h
mips_itu.h hw/misc/mips_itu: Remove MIPSITUState::saar field 2024-02-15 15:53:12 +01:00
mos6522.h input/adb: Only include header where needed 2023-02-06 11:41:39 +00:00
mps2-fpgaio.h
mps2-scc.h hw/misc/mps2-scc: Make changes needed for AN536 FPGA image 2024-02-15 14:32:38 +00:00
msf2-sysreg.h
npcm7xx_clk.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_gcr.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_mft.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_pwm.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
npcm7xx_rng.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2023-01-12 17:15:09 +00:00
nrf51_rng.h
pvpanic.h hw/misc/pvpanic: add support for normal shutdowns 2024-07-01 17:16:04 -04:00
sifive_e_aon.h hw/misc: sifive_e_aon: Support the watchdog timer of HiFive 1 rev b. 2023-07-10 22:29:14 +10:00
sifive_e_prci.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
sifive_test.h
sifive_u_otp.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
sifive_u_prci.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
stm32_rcc.h hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2024-10-15 11:29:45 +01:00
stm32f2xx_syscfg.h
stm32f4xx_exti.h
stm32f4xx_syscfg.h
stm32l4x5_exti.h hw/misc: In STM32L4x5 EXTI, consolidate 2 constants 2024-07-11 11:41:34 +01:00
stm32l4x5_rcc_internals.h hw/misc/stm32l4x5_rcc: Initialize PLLs and clock multiplexers 2024-03-05 13:22:56 +00:00
stm32l4x5_rcc.h hw/misc/stm32l4x5_rcc: Add an internal PLL Clock object 2024-03-05 13:22:56 +00:00
stm32l4x5_syscfg.h hw/misc: Create STM32L4x5 SYSCFG clock 2024-10-15 11:29:45 +01:00
tz-mpc.h
tz-msc.h
tz-ppc.h
unimp.h
virt_ctrl.h include: Include headers where needed 2023-01-08 01:54:22 -05:00
vmcoreinfo.h
xlnx-cfi-if.h Remove inclusion of hw/hw.h from files that don't need it 2024-07-02 06:58:48 +02:00
xlnx-versal-cframe-reg.h hw: Replace anti-social QOM type names (again) 2023-12-20 10:29:23 +01:00
xlnx-versal-cfu.h hw: Replace anti-social QOM type names (again) 2023-12-20 10:29:23 +01:00
xlnx-versal-crl.h hw/misc/xlnx-versal-crl: Include generic 'cpu-qom.h' instead of 'cpu.h' 2024-01-26 11:30:48 +00:00
xlnx-versal-pmc-iou-slcr.h hw/misc, hw/ssi: Fix some URLs for AMD / Xilinx models 2023-11-27 15:38:43 +00:00
xlnx-versal-trng.h hw/misc/xlnx-versal-trng: Call register_finalize_block 2024-09-05 13:12:36 +01:00
xlnx-versal-xramc.h
xlnx-zynqmp-apu-ctrl.h
xlnx-zynqmp-crf.h