powerpc/pseries/svm: Use shared memory for Debug Trace Log (DTL)
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Tue, 20 Aug 2019 02:13:19 +0000 (23:13 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:55:40 +0000 (09:55 +1000)
commitd5394c059da9786043934bed474562cde124e7d3
treee5507805d559e0fe4dae9659105fc5ac2e484bca
parentbd104e6db6f0ad124e507a9ecf1a468efe5697db
powerpc/pseries/svm: Use shared memory for Debug Trace Log (DTL)

Secure guests need to share the DTL buffers with the hypervisor. To that
end, use a kmem_cache constructor which converts the underlying buddy
allocated SLUB cache pages into shared memory.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190820021326.6884-10-bauerman@linux.ibm.com
arch/powerpc/include/asm/svm.h
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/setup.c
arch/powerpc/platforms/pseries/svm.c [new file with mode: 0644]