diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/s390x/cpu-topology.c | 11 | ||||
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/hw/s390x/cpu-topology.c b/hw/s390x/cpu-topology.c index 1316834..7ec93192 100644 --- a/hw/s390x/cpu-topology.c +++ b/hw/s390x/cpu-topology.c @@ -91,6 +91,17 @@ static void s390_topology_init(MachineState *ms) } /** + * s390_topology_reset: + * + * Generic reset for CPU topology, calls s390_topology_reset() + * to reset the kernel Modified Topology Change Record. + */ +void s390_topology_reset(void) +{ + s390_cpu_topology_set_changed(false); +} + +/** * s390_topology_cpu_default: * @cpu: pointer to a S390CPU * @errp: Error pointer diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 7fe2bce..6012165 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -124,6 +124,9 @@ static void subsystem_reset(void) device_cold_reset(dev); } } + if (s390_has_topology()) { + s390_topology_reset(); + } } static int virtio_ccw_hcall_notify(const uint64_t *args) |