qemu/target
Dongli Zhang 2b34d7382b target/i386/monitor: synchronize cpu state for lapic info
While the default "info lapic" always synchronizes cpu state ...

mon_get_cpu()
-> mon_get_cpu_sync(mon, true)
   -> cpu_synchronize_state(cpu)
      -> ioctl KVM_GET_LAPIC (taking KVM as example)

... the cpu state is not synchronized when the apic-id is available as
argument.

The cpu state should be synchronized when apic-id is available. Otherwise
the "info lapic <apic-id>" always returns stale data.

Reference:
https://lore.kernel.org/all/20211028155457.967291-19-berrange@redhat.com/

Cc: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Message-ID: <20231030085336.2681386-1-armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231026211938.162815-1-dongli.zhang@oracle.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2023-11-07 12:13:27 +01:00
..
alpha target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
arm target/arm: Move internal declarations from 'cpu-qom.h' to 'cpu.h' 2023-11-07 12:13:27 +01:00
avr target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
cris target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
hexagon target/hexagon: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
hppa target: Mention 'cpu-qom.h' is target agnostic 2023-11-07 12:13:27 +01:00
i386 target/i386/monitor: synchronize cpu state for lapic info 2023-11-07 12:13:27 +01:00
loongarch target/loongarch: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
m68k target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
microblaze target: Mention 'cpu-qom.h' is target agnostic 2023-11-07 12:13:27 +01:00
mips target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
nios2 target/nios2: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
openrisc target/openrisc: Declare QOM definitions in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
ppc target/ppc: Use env_archcpu() in helper_book3s_msgsndp() 2023-11-07 12:13:27 +01:00
riscv target/riscv: Use env_archcpu() in [check_]nanbox() 2023-11-07 12:13:27 +01:00
rx target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
s390x target/s390x: Use env_archcpu() in handle_diag_308() 2023-11-07 12:13:27 +01:00
sh4 target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
sparc target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
tricore target: Declare FOO_CPU_TYPE_NAME/SUFFIX in 'cpu-qom.h' 2023-11-07 12:13:27 +01:00
xtensa target/xtensa: Use env_archcpu() in update_c[compare|count]() 2023-11-07 12:13:27 +01:00
Kconfig hw/loongarch: Add support loongson3 virt machine type. 2022-06-06 18:09:03 +00:00
meson.build target/loongarch: Add target build suport 2022-06-06 18:09:03 +00:00