Skip to contentSkip to conversation

hmp: allow cpu index for "info lapic"

PATCH [email protected] 2 participants 2 messages Jul 19, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected],20170719081028.GA2103@work-vm

#1 lore raw
Quoted 63 lines · * [email protected] ([email protected]) wrote:
Quoted 50 lines

Hi Eduardo,

Thank you for your reply!

Quoted 32 lines · Yi Wang
Quoted 19 lines

Add [vcpu] index support for hmp command "info lapic", which is

useful when debugging ipi and so on. Current behavior is not

changed when the parameter isn't specified.

Quoted 5 lines
Quoted 5 lines

We have 8 monitor commands (see below) that use the CPU set by

the "cpu" command (mon_get_cpu()) as input. Why is "info lapic"

special?

Quoted 7 lines

When we debugging a problem of ipi, we wanted to verify lapic info

on each vCPU, but we found that we could only get vCPU 0's lapic

through "info lapic", so we supposed this patch could help those

who have the same problem as us.

I think Eduardo's point is that you can already do:

Quoted 7 lines

cpu 0

info lapic

cpu 1

info lapic

Yes, I get it, thank you.

The reason of the problem we met is that we use "virsh qemu-monitor-command",

so the 'cpu' command didn't work.

---

Best wishes

Yi Wang

#2 lore raw
Quoted 69 lines · On Wed, 19 Jul 2017 16:48:23 +0800 (CST) <[email protected]> wrote:
Quoted 68 lines · * [email protected] ([email protected]) wrote:
Quoted 50 lines

Hi Eduardo,

Thank you for your reply!

Quoted 32 lines · Yi Wang
Quoted 19 lines

Add [vcpu] index support for hmp command "info lapic", which is

useful when debugging ipi and so on. Current behavior is not

changed when the parameter isn't specified.

Quoted 5 lines
Quoted 5 lines

We have 8 monitor commands (see below) that use the CPU set by

the "cpu" command (mon_get_cpu()) as input. Why is "info lapic"

special?

Quoted 7 lines

When we debugging a problem of ipi, we wanted to verify lapic info

on each vCPU, but we found that we could only get vCPU 0's lapic

through "info lapic", so we supposed this patch could help those

who have the same problem as us.

I think Eduardo's point is that you can already do:

cpu 0

info lapic

cpu 1

Quoted 7 lines
Quoted 1 line

info lapic

Yes, I get it, thank you.

The reason of the problem we met is that we use "virsh qemu-monitor-command",

so the 'cpu' command didn't work.

you can try to use qmp interface directly which supports specifying cpu for monitor commands:

qemu supports:

-- Command: human-monitor-command

Execute a command on the human monitor and return the output.

Arguments:
'command-line: string'
the command to execute in the human monitor
'cpu-index: int' (optional)
The CPU to use for commands that require an implicit CPU

maybe "virsh qemu-monitor-command" can also do it, CCing libvirt list

Quoted 13 lines

---

Best wishes

Yi Wang