summaryrefslogtreecommitdiffstats
path: root/hw/ppc/trace-events
diff options
context:
space:
mode:
authorDavid Gibson2017-06-07 03:26:52 +0200
committerDavid Gibson2017-06-08 06:38:26 +0200
commitf224d35be9fb971bf64b569b99ce2a582156bbf2 (patch)
tree68c50c62d0bc1d3dd7390734b1cd191186e5d0c8 /hw/ppc/trace-events
parentpseries: Correct panic behaviour for pseries machine type (diff)
downloadqemu-f224d35be9fb971bf64b569b99ce2a582156bbf2.tar.gz
qemu-f224d35be9fb971bf64b569b99ce2a582156bbf2.tar.xz
qemu-f224d35be9fb971bf64b569b99ce2a582156bbf2.zip
spapr: Clean up DR entity sense handling
DRC classes have an entity_sense method to determine (in a specific PAPR sense) the presence or absence of a device plugged into a DRC. However, we only have one implementation of the method, which explicitly tests for different DRC types. This changes it to instead have different method implementations for the two cases: "logical" and "physical" DRCs. While we're at it, the entity sense method always returns RTAS_OUT_SUCCESS, and the interesting value is returned via pass-by-reference. Simplify this to directly return the value we care about Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw/ppc/trace-events')
-rw-r--r--hw/ppc/trace-events1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ppc/trace-events b/hw/ppc/trace-events
index 43d265f351..4979397f6c 100644
--- a/hw/ppc/trace-events
+++ b/hw/ppc/trace-events
@@ -44,7 +44,6 @@ spapr_drc_set_allocation_state(uint32_t index, int state) "drc: 0x%"PRIx32", sta
spapr_drc_set_allocation_state_finalizing(uint32_t index) "drc: 0x%"PRIx32
spapr_drc_set_configured(uint32_t index) "drc: 0x%"PRIx32
spapr_drc_set_configured_skipping(uint32_t index) "drc: 0x%"PRIx32", isolated device"
-spapr_drc_entity_sense(uint32_t index, int state) "drc: 0x%"PRIx32", state: 0x%x"
spapr_drc_attach(uint32_t index) "drc: 0x%"PRIx32
spapr_drc_detach(uint32_t index) "drc: 0x%"PRIx32
spapr_drc_awaiting_isolated(uint32_t index) "drc: 0x%"PRIx32