Skip to content

Commit 2d6be3c

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

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
@@ -193,6 +193,9 @@ static int gs_msg_ops_vcpu_fill_info(struct kvmppc_gs_buff *gsb,
193193
case KVMPPC_GSID_DAWRX1:
194194
rc = kvmppc_gse_put_u32(gsb, iden, vcpu->arch.dawrx1);
195195
break;
196+
case KVMPPC_GSID_DEXCR:
197+
rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.dexcr);
198+
break;
196199
case KVMPPC_GSID_CIABR:
197200
rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.ciabr);
198201
break;
@@ -445,6 +448,9 @@ static int gs_msg_ops_vcpu_refresh_info(struct kvmppc_gs_msg *gsm,
445448
case KVMPPC_GSID_DAWRX1:
446449
vcpu->arch.dawrx1 = kvmppc_gse_get_u32(gse);
447450
break;
451+
case KVMPPC_GSID_DEXCR:
452+
vcpu->arch.dexcr = kvmppc_gse_get_u64(gse);
453+
break;
448454
case KVMPPC_GSID_CIABR:
449455
vcpu->arch.ciabr = kvmppc_gse_get_u64(gse);
450456
break;

0 commit comments

Comments
 (0)