Re: [PATCH for 9.2] hw/virtio: fix crash in processing balloon stats

2024-11-29 Thread Richard W.M. Jones
On Fri, Nov 29, 2024 at 09:45:51AM +, Daniel P. Berrangé wrote: > balloon_stats_get_all will iterate over guest stats upto the max > VIRTIO_BALLOON_S_NR value, calling visit_type_uint64 to populate > the QObject dict. The dict keys are obtained from the static > array balloon_stat_names which i

[PATCH for 9.2] hw/virtio: fix crash in processing balloon stats

2024-11-29 Thread Daniel P . Berrangé
balloon_stats_get_all will iterate over guest stats upto the max VIRTIO_BALLOON_S_NR value, calling visit_type_uint64 to populate the QObject dict. The dict keys are obtained from the static array balloon_stat_names which is VIRTIO_BALLOON_S_NR in size. Unfortunately the way that array is declared