[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 24/25] pseries: define coldplugged devices as "configu
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 24/25] pseries: define coldplugged devices as "configured" |
Date: |
Thu, 3 Sep 2015 14:28:15 +1000 |
From: Laurent Vivier <address@hidden>
When a device is hotplugged, attach() sets "configured" to
false, waiting an action from the OS to configure it and then
to call ibm,configure-connector. On ibm,configure-connector,
the hypervisor sets "configured" to true.
In case of coldplugged device, attach() sets "configured" to
false, but firmware and OS never call the ibm,configure-connector
in this case, so it remains set to false.
It could be harmless, but when we unplug a device, hypervisor
waits the device becomes configured because for it, a not configured
device is a device being configured, so it waits the end of configuration
to unplug it... and it never happens, so it is never unplugged.
This patch set by default coldplugged device to "configured=true",
hotplugged device to "configured=false".
Signed-off-by: Laurent Vivier <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr_drc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c
index 8cbcf4d..9ce844a 100644
--- a/hw/ppc/spapr_drc.c
+++ b/hw/ppc/spapr_drc.c
@@ -310,7 +310,7 @@ static void attach(sPAPRDRConnector *drc, DeviceState *d,
void *fdt,
drc->dev = d;
drc->fdt = fdt;
drc->fdt_start_offset = fdt_start_offset;
- drc->configured = false;
+ drc->configured = coldplug;
object_property_add_link(OBJECT(drc), "device",
object_get_typename(OBJECT(drc->dev)),
--
2.4.3
- [Qemu-ppc] [PATCH 03/25] spapr: Initialize hotplug memory address space, (continued)
- [Qemu-ppc] [PATCH 03/25] spapr: Initialize hotplug memory address space, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 07/25] spapr: Memory hotplug support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 08/25] spapr: Don't allow memory hotplug to memory less nodes, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 09/25] spapr: Add /ibm,partition-name, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 17/25] spapr: Provide better error message when slots exceed max allowed, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 20/25] spapr: Support hotplug by specifying DRC count, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 16/25] spapr: Use QEMU limit for maximum CPUs number, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 18/25] spapr: Populate ibm, associativity-lookup-arrays correctly for non-NUMA, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 21/25] spapr: Move memory hotplug to RTAS_LOG_V6_HP_ID_DRC_COUNT type, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 23/25] sPAPR: Introduce rtas_ldq(), David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 24/25] pseries: define coldplugged devices as "configured",
David Gibson <=
- [Qemu-ppc] [PATCH 15/25] ppc/spapr: Use qemu_log_mask() for hcall_dprintf(), David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 05/25] spapr: Support ibm, dynamic-reconfiguration-memory, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 19/25] spapr: Revert to address@hidden representation for non-hotplugged memory, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 25/25] pseries: Update SLOF firmware image to qemu-slof-20150813, David Gibson, 2015/09/03