Greg Kurz 4b63db1289 spapr: Don't use spapr_drc_needed() in CAS code
We currently don't support hotplug of devices between boot and CAS. If
this happens a CAS reboot is triggered. We detect this during CAS using
the spapr_drc_needed() function which is essentially a VMStateDescription
.needed callback. Even if the condition for CAS reboot happens to be the
same as for DRC migration, it looks wrong to piggyback a migration helper
for this.

Introduce a helper with slightly more explicit name and use it in both CAS
and DRC migration code. Since a subsequent patch will enhance this helper
to cover the case of hot unplug, let's go for spapr_drc_transient(). While
here convert spapr_hotplugged_dev_before_cas() to the "transient" wording as
well.

This doesn't change any behaviour.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <158169248180.3465937.9531405453362718771.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2020-02-21 09:15:04 +11:00
..
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2019-08-16 13:31:53 +02:00
2020-01-07 17:24:29 +04:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-12-17 19:33:51 +01:00
2019-06-12 13:20:21 +02:00
2019-09-07 08:31:51 +02:00
2020-02-21 09:15:04 +11:00
2019-08-16 13:31:52 +02:00
2020-01-17 14:27:16 +00:00
2019-10-28 19:06:47 +01:00
2019-06-12 13:20:21 +02:00
2020-02-10 12:01:37 -08:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:53 +02:00
2019-08-16 13:31:52 +02:00
2019-11-06 17:19:40 +01:00
2019-08-16 13:31:52 +02:00
2018-12-11 15:45:22 -02:00
2019-08-16 13:31:52 +02:00
2019-11-05 23:33:12 +01:00
2019-08-16 13:31:53 +02:00
2019-06-12 13:20:21 +02:00
2020-01-07 16:06:59 +04:00
2019-08-16 13:31:53 +02:00