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

2024-12-02 Thread Michael Tokarev
29.11.2024 16:55, 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 is VIRTIO_BALLOON_S_NR in size.

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

2024-11-29 Thread David Hildenbrand
On 29.11.24 14:55, 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 is VIRTIO_BALLOON_S_NR in size

[PATCH v2 1/3 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