> From: Dongli Zhang > > 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 " always returns stale data. > > Cc: Joe Jin > Reviewed-by: Daniel P. Berrangé > Signed-off-by: Dongli Zhang Reviewed-by: David Woodhouse I spent a while staring at stale data from 'info lapic 1' this week before realising. This fix would have been nice.