mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 22:03:54 -06:00
target/ppc/cpu_init: Synchronize HASHKEYR with KVM for migration
The patch enables HASHKEYR migration by hooking with the "KVM one reg" ID KVM_REG_PPC_HASHKEYR. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
ca85beb4b7
commit
843b243f86
1 changed files with 2 additions and 2 deletions
|
@ -5873,10 +5873,10 @@ static void register_power10_hash_sprs(CPUPPCState *env)
|
||||||
((uint64_t)g_rand_int(rand) << 32) | (uint64_t)g_rand_int(rand);
|
((uint64_t)g_rand_int(rand) << 32) | (uint64_t)g_rand_int(rand);
|
||||||
g_rand_free(rand);
|
g_rand_free(rand);
|
||||||
#endif
|
#endif
|
||||||
spr_register(env, SPR_HASHKEYR, "HASHKEYR",
|
spr_register_kvm(env, SPR_HASHKEYR, "HASHKEYR",
|
||||||
SPR_NOACCESS, SPR_NOACCESS,
|
SPR_NOACCESS, SPR_NOACCESS,
|
||||||
&spr_read_generic, &spr_write_generic,
|
&spr_read_generic, &spr_write_generic,
|
||||||
hashkeyr_initial_value);
|
KVM_REG_PPC_HASHKEYR, hashkeyr_initial_value);
|
||||||
spr_register_hv(env, SPR_HASHPKEYR, "HASHPKEYR",
|
spr_register_hv(env, SPR_HASHPKEYR, "HASHPKEYR",
|
||||||
SPR_NOACCESS, SPR_NOACCESS,
|
SPR_NOACCESS, SPR_NOACCESS,
|
||||||
SPR_NOACCESS, SPR_NOACCESS,
|
SPR_NOACCESS, SPR_NOACCESS,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue