mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2d42f94773
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>
20 lines
420 B
C
20 lines
420 B
C
/*
|
|
* Copyright IBM Corp. 2017
|
|
* Author(s): Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
|
|
*/
|
|
|
|
#ifndef PAGE_STATES_H
|
|
#define PAGE_STATES_H
|
|
|
|
#define ESSA_GET_STATE 0
|
|
#define ESSA_SET_STABLE 1
|
|
#define ESSA_SET_UNUSED 2
|
|
#define ESSA_SET_VOLATILE 3
|
|
#define ESSA_SET_POT_VOLATILE 4
|
|
#define ESSA_SET_STABLE_RESIDENT 5
|
|
#define ESSA_SET_STABLE_IF_RESIDENT 6
|
|
|
|
#define ESSA_MAX ESSA_SET_STABLE_IF_RESIDENT
|
|
|
|
#endif
|