hw/virtio: Remove VirtIOBalloon::qemu_4_0_config_size field
The VirtIOBalloon::qemu_4_0_config_size boolean was only set in the hw_compat_4_0[] array, via the 'qemu-4-0-config-size=true' property. We removed all machines using that array, lets remove that property. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20260307154202.86309-6-philmd@linaro.org>
Philippe Mathieu-Daudé committed
May 2, 2025 at 00:01 UTC
fb66dbbc4d7017e88f3a82a949c82570088d8d82
2 files changed
-6
hw/virtio/virtio-balloon.c
-5
@@ -708,9 +708,6 @@ static size_t virtio_balloon_config_size(VirtIOBalloon *s)
708
{
709
uint64_t features = s->host_features;
710
711
- if (s->qemu_4_0_config_size) {
712
- return sizeof(struct virtio_balloon_config);
713
- }
711
if (virtio_has_feature(features, VIRTIO_BALLOON_F_PAGE_POISON)) {
712
return sizeof(struct virtio_balloon_config);
713
}
@@ -1054,8 +1051,6 @@ static const Property virtio_balloon_properties[] = {
1051
* is disabled, resulting in QEMU 3.1 migration incompatibility. This
1052
* property retains this quirk for QEMU 4.1 machine types.
1053
*/
1057
- DEFINE_PROP_BOOL("qemu-4-0-config-size", VirtIOBalloon,
1058
- qemu_4_0_config_size, false),
1054
DEFINE_PROP_LINK("iothread", VirtIOBalloon, iothread, TYPE_IOTHREAD,
1055
IOThread *),
1056
};
include/hw/virtio/virtio-balloon.h
-1
@@ -70,7 +70,6 @@ struct VirtIOBalloon {
70
int64_t stats_poll_interval;
71
uint32_t host_features;
72
73
- bool qemu_4_0_config_size;
73
uint32_t poison_val;
74
75
/* State of the resettable container */