summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/cpu_ops.c
diff options
context:
space:
mode:
authorPeter Collingbourne <pcc@google.com>2022-11-03 18:10:39 -0700
committerMarc Zyngier <maz@kernel.org>2022-11-29 09:26:07 +0000
commitd89585fbb30869011b326ef26c94c3137d228df9 (patch)
treec60e4ca6d97759233753ba6165895329dc5f2d5c /arch/arm64/kernel/cpu_ops.c
parentd77e59a8fccde7fb5dd8c57594ed147b4291c970 (diff)
downloadlinux-d89585fbb30869011b326ef26c94c3137d228df9.tar.gz
linux-d89585fbb30869011b326ef26c94c3137d228df9.tar.bz2
linux-d89585fbb30869011b326ef26c94c3137d228df9.zip
KVM: arm64: unify the tests for VMAs in memslots when MTE is enabled
Previously we allowed creating a memslot containing a private mapping that was not VM_MTE_ALLOWED, but would later reject KVM_RUN with -EFAULT. Now we reject the memory region at memslot creation time. Since this is a minor tweak to the ABI (a VMM that created one of these memslots would fail later anyway), no VMM to my knowledge has MTE support yet, and the hardware with the necessary features is not generally available, we can probably make this ABI change at this point. Signed-off-by: Peter Collingbourne <pcc@google.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221104011041.290951-7-pcc@google.com
Diffstat (limited to 'arch/arm64/kernel/cpu_ops.c')
0 files changed, 0 insertions, 0 deletions