]> Git Repo - qemu.git/commit
spapr: Remove unnecessary differences between hotplug and coldplug paths
authorDavid Gibson <[email protected]>
Mon, 19 Jun 2017 05:16:21 +0000 (13:16 +0800)
committerDavid Gibson <[email protected]>
Tue, 11 Jul 2017 01:04:01 +0000 (11:04 +1000)
commit5c1da81215c7f4f010fbc0c146945a6f182e5586
tree8b49f1e5ae55f4ac32b3b20f297a18efbaff3730
parent6b762f29a8bc9feb3e45d512169571d3cc8a4f48
spapr: Remove unnecessary differences between hotplug and coldplug paths

spapr_drc_attach() has a 'coldplug' parameter which sets the DRC into
configured state initially, instead of the usual ISOLATED/UNUSABLE state.
It turns out this is unnecessary: although coldplugged devices do need to
be in CONFIGURED state once the guest starts, that will already be
accomplished by the reset code which will move DRCs for already plugged
devices into a coldplug equivalent state.

Signed-off-by: David Gibson <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
hw/ppc/spapr.c
hw/ppc/spapr_drc.c
hw/ppc/spapr_pci.c
include/hw/ppc/spapr_drc.h
This page took 0.027168 seconds and 4 git commands to generate.