[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] hw/arm/virt: KVM: Enable PAuth when supported by the host
From: |
Andrew Jones |
Subject: |
Re: [PATCH v2] hw/arm/virt: KVM: Enable PAuth when supported by the host |
Date: |
Wed, 5 Jan 2022 15:58:55 +0100 |
On Mon, Jan 03, 2022 at 06:05:07PM +0000, Marc Zyngier wrote:
> Add basic support for Pointer Authentication when running a KVM
> guest and that the host supports it, loosely based on the SVE
> support.
>
> Although the feature is enabled by default when the host advertises
> it, it is possible to disable it by setting the 'pauth=off' CPU
> property. The 'pauth' comment is removed from cpu-features.rst,
> as it is now common to both TCG and KVM.
>
> Tested on an Apple M1 running 5.16-rc6.
>
> Cc: Eric Auger <eric.auger@redhat.com>
> Cc: Andrew Jones <drjones@redhat.com>
> Cc: Richard Henderson <richard.henderson@linaro.org>
> Cc: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---
> * From v1:
> - Drop 'pauth' documentation
> - Make the TCG path common to both TCG and KVM
> - Some tidying up
>
> docs/system/arm/cpu-features.rst | 4 ----
> target/arm/cpu.c | 14 ++++----------
> target/arm/cpu.h | 1 +
> target/arm/cpu64.c | 33 ++++++++++++++++++++++++++++----
> target/arm/kvm64.c | 21 ++++++++++++++++++++
> 5 files changed, 55 insertions(+), 18 deletions(-)
>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Thanks,
drew