Skip to contentSkip to conversation

ipmi: Remove hotplug from IPMI BMCs

PATCH Superseded [email protected] 2 participants 2 messages Jul 27, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmi: Remove hotplug from IPMI BMCs

From: Corey Minyard <[email protected]>

No hotplug support, make sure it doesn't happen.

---
 hw/ipmi/ipmi_bmc_extern.c | 1 +
 hw/ipmi/ipmi_bmc_sim.c    | 1 +
 2 files changed, 2 insertions(+)

This is my proposed patch instead of "ipmi:free extern timer" send by Marc-Andre.

hw/ipmi/ipmi_bmc_extern.c +1 -0
index 157879e..ebd0d8d 100644
@@ -499,6 +499,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *oc, void *data)
 
     bk->handle_command = ipmi_bmc_extern_handle_command;
     bk->handle_reset = ipmi_bmc_extern_handle_reset;
+    dc->hotpluggable = false;
     dc->realize = ipmi_bmc_extern_realize;
     dc->props = ipmi_bmc_extern_properties;
 }
hw/ipmi/ipmi_bmc_sim.c +1 -0
index dc9c14c..190e169 100644
@@ -1791,6 +1791,7 @@ static void ipmi_sim_class_init(ObjectClass *oc, void *data)
     DeviceClass *dc = DEVICE_CLASS(oc);
     IPMIBmcClass *bk = IPMI_BMC_CLASS(oc);
 
+    dc->hotpluggable = false;
     dc->realize = ipmi_sim_realize;
     bk->handle_command = ipmi_sim_handle_command;
 }
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw

Hi

----- Original Message -----

Quoted 5 lines

From: Corey Minyard <[email protected]>

No hotplug support, make sure it doesn't happen.

Quoted 38 lines
---
 hw/ipmi/ipmi_bmc_extern.c | 1 +
 hw/ipmi/ipmi_bmc_sim.c    | 1 +
 2 files changed, 2 insertions(+)

This is my proposed patch instead of "ipmi:free extern timer" send by Marc-Andre.

hw/ipmi/ipmi_bmc_extern.c +1 -0
index 157879e..ebd0d8d 100644
@@ -499,6 +499,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *oc,
 void *data)
 
     bk->handle_command = ipmi_bmc_extern_handle_command;
     bk->handle_reset = ipmi_bmc_extern_handle_reset;
+    dc->hotpluggable = false;
     dc->realize = ipmi_bmc_extern_realize;
     dc->props = ipmi_bmc_extern_properties;

}

hw/ipmi/ipmi_bmc_sim.c +1 -0
index dc9c14c..190e169 100644
@@ -1791,6 +1791,7 @@ static void ipmi_sim_class_init(ObjectClass *oc, void
 *data)
     DeviceClass *dc = DEVICE_CLASS(oc);
     IPMIBmcClass *bk = IPMI_BMC_CLASS(oc);
 
+    dc->hotpluggable = false;
     dc->realize = ipmi_sim_realize;
     bk->handle_command = ipmi_sim_handle_command;

}
--
2.7.4