]> www.infradead.org Git - users/dwmw2/qemu.git/commit
arm/kvm: add support for MTE
authorCornelia Huck <cohuck@redhat.com>
Tue, 29 Oct 2024 12:54:40 +0000 (12:54 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Oct 2024 12:54:40 +0000 (12:54 +0000)
commit918d0de0728c3840e3c459202f9bdbcc690a5727
treef692572361dbc997f31dc1c1d3d6175598466447
parentfdf250e5a37830615e324017cb3a503e84b3712c
arm/kvm: add support for MTE

Extend the 'mte' property for the virt machine to cover KVM as
well. For KVM, we don't allocate tag memory, but instead enable
the capability.

If MTE has been enabled, we need to disable migration, as we do not
yet have a way to migrate the tags as well. Therefore, MTE will stay
off with KVM unless requested explicitly.

[gankulkarni: This patch is rework of commit b320e21c48
which broke TCG since it made the TCG -cpu max
report the presence of MTE to the guest even if the board hadn't
enabled MTE by wiring up the tag RAM. This meant that if the guest
then tried to use MTE QEMU would segfault accessing the
non-existent tag RAM.]

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Gustavo Romero <gustavo.romero@linaro.org>
Signed-off-by: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
Message-id: 20241008114302.4855-1-gankulkarni@os.amperecomputing.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
target/arm/cpu.c
target/arm/cpu.h
target/arm/kvm.c
target/arm/kvm_arm.h