Skip to content

Commit 921dee4

Browse files
committed
hw/s390x: Remove the "adapter_routes_max_batch" property from the flic
Now that the s390-ccw-virtio-2.8 machine has been removed, we don't need the "adapter_routes_max_batch" property anymore and can remove it. Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Acked-by: Christian Borntraeger <[email protected]> Message-ID: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 66924fe commit 921dee4

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

hw/intc/s390_flic.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -471,22 +471,13 @@ static void qemu_s390_flic_class_init(ObjectClass *oc, void *data)
471471
}
472472

473473
static const Property s390_flic_common_properties[] = {
474-
DEFINE_PROP_UINT32("adapter_routes_max_batch", S390FLICState,
475-
adapter_routes_max_batch, ADAPTER_ROUTES_MAX_GSI),
476474
DEFINE_PROP_BOOL("migration-enabled", S390FLICState,
477475
migration_enabled, true),
478476
};
479477

480478
static void s390_flic_common_realize(DeviceState *dev, Error **errp)
481479
{
482480
S390FLICState *fs = S390_FLIC_COMMON(dev);
483-
uint32_t max_batch = fs->adapter_routes_max_batch;
484-
485-
if (max_batch > ADAPTER_ROUTES_MAX_GSI) {
486-
error_setg(errp, "flic property adapter_routes_max_batch too big"
487-
" (%d > %d)", max_batch, ADAPTER_ROUTES_MAX_GSI);
488-
return;
489-
}
490481

491482
fs->ais_supported = s390_has_feat(S390_FEAT_ADAPTER_INT_SUPPRESSION);
492483
}

hw/s390x/virtio-ccw.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,6 @@ static void virtio_ccw_device_plugged(DeviceState *d, Error **errp)
11571157
CcwDevice *ccw_dev = CCW_DEVICE(d);
11581158
SubchDev *sch = ccw_dev->sch;
11591159
int n = virtio_get_num_queues(vdev);
1160-
S390FLICState *flic = s390_get_flic();
11611160

11621161
if (!virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) {
11631162
dev->max_rev = 0;
@@ -1184,10 +1183,10 @@ static void virtio_ccw_device_plugged(DeviceState *d, Error **errp)
11841183
VIRTIO_QUEUE_MAX);
11851184
return;
11861185
}
1187-
if (virtio_get_num_queues(vdev) > flic->adapter_routes_max_batch) {
1186+
if (virtio_get_num_queues(vdev) > ADAPTER_ROUTES_MAX_GSI) {
11881187
error_setg(errp, "The number of virtqueues %d "
11891188
"exceeds flic adapter route limit %d", n,
1190-
flic->adapter_routes_max_batch);
1189+
ADAPTER_ROUTES_MAX_GSI);
11911190
return;
11921191
}
11931192

include/hw/s390x/s390_flic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ OBJECT_DECLARE_TYPE(S390FLICState, S390FLICStateClass,
4141

4242
struct S390FLICState {
4343
SysBusDevice parent_obj;
44-
/* to limit AdapterRoutes.num_routes for compat */
45-
uint32_t adapter_routes_max_batch;
4644
bool ais_supported;
4745
bool migration_enabled;
4846
};

0 commit comments

Comments
 (0)