Skip to content

Commit 8a4e759

Browse files
gkurzpaulusmack
authored andcommitted
KVM: PPC: Book3S HV: XIVE: Show VP id in debugfs
Print out the VP id of each connected vCPU, this allow to see: - the VP block base in which OPAL encodes information that may be useful when debugging - the packed vCPU id which may differ from the raw vCPU id if the latter is >= KVM_MAX_VCPUS (2048) Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
1 parent e7d71c9 commit 8a4e759

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/powerpc/kvm/book3s_xive.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,9 +2107,9 @@ static int xive_debug_show(struct seq_file *m, void *private)
21072107
if (!xc)
21082108
continue;
21092109

2110-
seq_printf(m, "cpu server %#x CPPR:%#x HWCPPR:%#x"
2110+
seq_printf(m, "cpu server %#x VP:%#x CPPR:%#x HWCPPR:%#x"
21112111
" MFRR:%#x PEND:%#x h_xirr: R=%lld V=%lld\n",
2112-
xc->server_num, xc->cppr, xc->hw_cppr,
2112+
xc->server_num, xc->vp_id, xc->cppr, xc->hw_cppr,
21132113
xc->mfrr, xc->pending,
21142114
xc->stat_rm_h_xirr, xc->stat_vm_h_xirr);
21152115

‎arch/powerpc/kvm/book3s_xive_native.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,8 @@ static int xive_native_debug_show(struct seq_file *m, void *private)
12041204
if (!xc)
12051205
continue;
12061206

1207-
seq_printf(m, "cpu server %#x NSR=%02x CPPR=%02x IBP=%02x PIPR=%02x w01=%016llx w2=%08x\n",
1208-
xc->server_num,
1207+
seq_printf(m, "cpu server %#x VP=%#x NSR=%02x CPPR=%02x IBP=%02x PIPR=%02x w01=%016llx w2=%08x\n",
1208+
xc->server_num, xc->vp_id,
12091209
vcpu->arch.xive_saved_state.nsr,
12101210
vcpu->arch.xive_saved_state.cppr,
12111211
vcpu->arch.xive_saved_state.ipb,

0 commit comments

Comments
 (0)