OSDN Git Service

hw/ppc/spapr.c: recover pending LMB unplug info in spapr_lmb_release
authorDaniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
Mon, 22 May 2017 19:35:50 +0000 (16:35 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 25 May 2017 01:31:33 +0000 (11:31 +1000)
commit16ee99805e069601ba3ce9da524bab377ab03866
tree1400ae11ecad90000b7cbdba4994c6d0dd88e825
parenta50919dddf148b0a2008db4a0593dbe69e1059c0
hw/ppc/spapr.c: recover pending LMB unplug info in spapr_lmb_release

When a LMB hot unplug starts, the current DRC LMB status is stored at
spapr->pending_dimm_unplugs QTAILQ. This queue isn't migrated, thus
if a migration occurs in the middle of a LMB unplug the
spapr_lmb_release callback will lost track of the LMB unplug progress.

This patch implements a new recover function spapr_recover_pending_dimm_state
that is used inside spapr_lmb_release to recover this DRC LMB release
status that is lost during the migration.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
[dwg: Minor stylistic changes, simplify error handling]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c