OSDN Git Service

target/arm: Add cpu properties to control pauth
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 11 Jan 2021 23:57:39 +0000 (13:57 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jan 2021 14:38:51 +0000 (14:38 +0000)
commiteb94284d0812b4e7c11c5d075b584100ac1c1b9a
treead205638a5b69b2bfce54899472934b4179db904
parent283fc52ade85eb50141f3b8b85f82b07d016cb17
target/arm: Add cpu properties to control pauth

The crypto overhead of emulating pauth can be significant for
some workloads.  Add two boolean properties that allows the
feature to be turned off, on with the architected algorithm,
or on with an implementation defined algorithm.

We need two intermediate booleans to control the state while
parsing properties lest we clobber ID_AA64ISAR1 into an invalid
intermediate state.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210111235740.462469-3-richard.henderson@linaro.org
[PMM: fixed docs typo, tweaked text to clarify that the impdef
algorithm is specific to QEMU]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
docs/system/arm/cpu-features.rst
target/arm/cpu.c
target/arm/cpu.h
target/arm/cpu64.c
target/arm/monitor.c
tests/qtest/arm-cpu-features.c