target/ppc/cpu_init: Synchronize HASHPKEYR with KVM for migration
The patch enables HASHPKEYR migration by hooking with the "KVM one reg" ID KVM_REG_PPC_HASHPKEYR. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
843b243f86
commit
c0840b46d4
@ -5877,11 +5877,11 @@ static void register_power10_hash_sprs(CPUPPCState *env)
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
KVM_REG_PPC_HASHKEYR, hashkeyr_initial_value);
|
||||
spr_register_hv(env, SPR_HASHPKEYR, "HASHPKEYR",
|
||||
spr_register_kvm_hv(env, SPR_HASHPKEYR, "HASHPKEYR",
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
SPR_NOACCESS, SPR_NOACCESS,
|
||||
&spr_read_generic, &spr_write_generic,
|
||||
hashpkeyr_initial_value);
|
||||
KVM_REG_PPC_HASHPKEYR, hashpkeyr_initial_value);
|
||||
}
|
||||
|
||||
static void register_power10_dexcr_sprs(CPUPPCState *env)
|
||||
|
Loading…
Reference in New Issue
Block a user