x86/mm: Use a struct to reduce parameters for SME PGD mapping
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 10 Jan 2018 19:26:05 +0000 (13:26 -0600)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Jan 2018 00:50:58 +0000 (01:50 +0100)
commitbacf6b499e11760aef73a3bb5ce4e5eea74a3fd4
tree559a67bc48b3fd983df8986a6b54aa875ff49c1d
parent1303880179e67c59e801429b7e5d0f6b21137d99
x86/mm: Use a struct to reduce parameters for SME PGD mapping

In preparation for follow-on patches, combine the PGD mapping parameters
into a struct to reduce the number of function arguments and allow for
direct updating of the next pagetable mapping area pointer.

Tested-by: Gabriel Craciunescu <nix.or.die@gmail.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180110192605.6026.96206.stgit@tlendack-t1.amdoffice.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/mem_encrypt.c