x86/mm: Use a struct to reduce parameters for SME PGD mapping
authorTom Lendacky <[email protected]>
Wed, 10 Jan 2018 19:26:05 +0000 (13:26 -0600)
committerIngo Molnar <[email protected]>
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 <[email protected]>
Signed-off-by: Tom Lendacky <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brijesh Singh <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/mm/mem_encrypt.c