projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca85beb
)
target/ppc/cpu_init: Synchronize HASHKEYR with KVM for migration
author
Shivaprasad G Bhat
<sbhat@linux.ibm.com>
Wed, 5 Jun 2024 15:58:12 +0000
(15:58 +0000)
committer
Nicholas Piggin
<npiggin@gmail.com>
Thu, 25 Jul 2024 23:21:06 +0000
(09:21 +1000)
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>
target/ppc/cpu_init.c
patch
|
blob
|
history
diff --git
a/target/ppc/cpu_init.c
b/target/ppc/cpu_init.c
index 7c3ee8066162167484814f548e189da65c458eff..d311b190c1fe7ff8b34365c0aaf774b2728b6fba 100644
(file)
--- a/
target/ppc/cpu_init.c
+++ b/
target/ppc/cpu_init.c
@@
-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);
g_rand_free(rand);
#endif
- spr_register(env, SPR_HASHKEYR, "HASHKEYR",
+ spr_register
_kvm
(env, SPR_HASHKEYR, "HASHKEYR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
- hashkeyr_initial_value);
+
KVM_REG_PPC_HASHKEYR,
hashkeyr_initial_value);
spr_register_hv(env, SPR_HASHPKEYR, "HASHPKEYR",
SPR_NOACCESS, SPR_NOACCESS,
SPR_NOACCESS, SPR_NOACCESS,