Skip to content

Commit ac0fe56

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: vgic: Use vcpu_idx for the debug information
When dumping the debug information, use vcpu_idx instead of vcpu_id, as this is independent of any userspace influence. Reviewed-by: Zenghui Yu <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 4e7728c commit ac0fe56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm64/kvm/vgic/vgic-debug.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void print_header(struct seq_file *s, struct vgic_irq *irq,
166166

167167
if (vcpu) {
168168
hdr = "VCPU";
169-
id = vcpu->vcpu_id;
169+
id = vcpu->vcpu_idx;
170170
}
171171

172172
seq_printf(s, "\n");
@@ -212,7 +212,7 @@ static void print_irq_state(struct seq_file *s, struct vgic_irq *irq,
212212
" %2d "
213213
"\n",
214214
type, irq->intid,
215-
(irq->target_vcpu) ? irq->target_vcpu->vcpu_id : -1,
215+
(irq->target_vcpu) ? irq->target_vcpu->vcpu_idx : -1,
216216
pending,
217217
irq->line_level,
218218
irq->active,
@@ -224,7 +224,7 @@ static void print_irq_state(struct seq_file *s, struct vgic_irq *irq,
224224
irq->mpidr,
225225
irq->source,
226226
irq->priority,
227-
(irq->vcpu) ? irq->vcpu->vcpu_id : -1);
227+
(irq->vcpu) ? irq->vcpu->vcpu_idx : -1);
228228
}
229229

230230
static int vgic_debug_show(struct seq_file *s, void *v)

0 commit comments

Comments
 (0)