hashstp
Hash Store Privileged
Privileged version of hash store.
Details
Privileged instruction that stores a hash value to the address specified in RA. This instruction is used by privileged software (such as the hypervisor) to update hash tables for memory protection or integrity checking. Requires hypervisor privilege level and may affect storage subsystem state.
Pseudocode Operation
[RA] ← hash_compute(current_state)
Programming Note
The hashstp instruction is used for storing a doubleword into memory while verifying its integrity against a previously computed hash. It requires privileged access and must be executed in a context where the MSR register allows such operations. Ensure that the effective address (EA) is correctly calculated and aligned to avoid exceptions. If the stored value does not match the expected hash, a trap will occur, necessitating proper error handling.
Example
Encoding
Operands
-
RA
Address