arm64: mte: Save tags when hibernating
authorSteven Price <steven.price@arm.com>
Wed, 13 May 2020 15:37:51 +0000 (16:37 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Sep 2020 11:46:07 +0000 (12:46 +0100)
commitee11f332af96a3b5d29586bc6d69b41531f62648
tree99ff4af0632ff03c3af6f4085dada838106b387d
parent36943aba91860269abfba2e736e9534d48e90cae
arm64: mte: Save tags when hibernating

When hibernating the contents of all pages in the system are written to
disk, however the MTE tags are not visible to the generic hibernation
code. So just before the hibernation image is created copy the tags out
of the physical tag storage into standard memory so they will be
included in the hibernation image. After hibernation apply the tags back
into the physical tag storage.

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Will Deacon <will@kernel.org>
arch/arm64/kernel/hibernate.c