spapr: Leave DR-indicator management to the guest
commitf8dc29834c6b90ef05ac9463624ad0a680feb379
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Jun 2017 07:01:57 +0000 (8 17:01 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 11 Jul 2017 01:04:01 +0000 (11 11:04 +1000)
tree1e0cd6daa2f2ca8e3cec8617a16f18c37832312f
parent0ee604abce61ab091b00ced40610866e02f55790
spapr: Leave DR-indicator management to the guest

The DR-indicator is essentially a "virtual LED" attached to a hotpluggable
device, which the guest can set to various states for the attention of
the operator or management layers.

It's mostly guest managed, except that we once-off set it to
ACTIVE/INACTIVE in the attach/detach path.  While that makes certain sense,
there's no indication in PAPR that the hypervisor should do this, and the
drmgr code on the guest side doesn't appear to need it (it will already set
the indicator to ACTIVE on hotplug, and INACTIVE on remove).

So, leave the DR-indicator entirely to the guest; the only thing we need
to do is ensure it's in a sane state on reset.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr_drc.c