diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2023-10-26 14:19:38 -0700 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 12:13:27 +0100 |
commit | 2b34d7382b669b154f44d616f7e5b78f459ffd61 (patch) | |
tree | bebfa3ab10af45abb6937b351704cce301f14097 /hw/i386/amd_iommu.c | |
parent | de910c496a62db24388b9ef7da49f06b12745274 (diff) | |
download | qemu-2b34d7382b669b154f44d616f7e5b78f459ffd61.zip qemu-2b34d7382b669b154f44d616f7e5b78f459ffd61.tar.gz qemu-2b34d7382b669b154f44d616f7e5b78f459ffd61.tar.bz2 |
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>
Diffstat (limited to 'hw/i386/amd_iommu.c')
0 files changed, 0 insertions, 0 deletions