s390/kvm: Add PGSTE manipulation functions
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Thu, 20 Apr 2017 08:03:45 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Apr 2017 11:33:08 +0000 (13:33 +0200)
commit2d42f9477320befd33846c4083cab898998cdee5
tree71045127b1000beafd1760b509e6ba9e66e1d3c6
parentb13de4b7adeb7a5e37a5aa78d5a4926c3cd4e131
s390/kvm: Add PGSTE manipulation functions

Add PGSTE manipulation functions:
* set_pgste_bits sets specific bits in a PGSTE
* get_pgste returns the whole PGSTE
* pgste_perform_essa manipulates a PGSTE to set specific storage states
* ESSA_[SG]ET_* macros used to indicate the action for manipulate_pgste

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Reviewed-by: Janosch Frank <frankja@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/page-states.h [new file with mode: 0644]
arch/s390/include/asm/pgtable.h
arch/s390/mm/page-states.c
arch/s390/mm/pgtable.c