Skip to content

Commit 0b65365

Browse files
ShivaprasadGBhatmpe
authored andcommitted
KVM: PPC: Book3S HV nestedv2: Keep nested guest HASHPKEYR in sync
The nestedv2 APIs has the guest state element defined for HASHPKEYR for the save-restore with L0. However, its ignored in the code. The patch takes care of this for the HASHPKEYR GSID. Signed-off-by: Shivaprasad G Bhat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 9a0d2f4 commit 0b65365

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/powerpc/kvm/book3s_hv_nestedv2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ static int gs_msg_ops_vcpu_fill_info(struct kvmppc_gs_buff *gsb,
199199
case KVMPPC_GSID_HASHKEYR:
200200
rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.hashkeyr);
201201
break;
202+
case KVMPPC_GSID_HASHPKEYR:
203+
rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.hashpkeyr);
204+
break;
202205
case KVMPPC_GSID_CIABR:
203206
rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.ciabr);
204207
break;
@@ -457,6 +460,9 @@ static int gs_msg_ops_vcpu_refresh_info(struct kvmppc_gs_msg *gsm,
457460
case KVMPPC_GSID_HASHKEYR:
458461
vcpu->arch.hashkeyr = kvmppc_gse_get_u64(gse);
459462
break;
463+
case KVMPPC_GSID_HASHPKEYR:
464+
vcpu->arch.hashpkeyr = kvmppc_gse_get_u64(gse);
465+
break;
460466
case KVMPPC_GSID_CIABR:
461467
vcpu->arch.ciabr = kvmppc_gse_get_u64(gse);
462468
break;

0 commit comments

Comments
 (0)