Received: from eggs.gnu.org ([2001:4830:134:3::10]:39488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSQnl-0000ey-Ee for qemu-devel@nongnu.org; Wed, 27 Jul 2016 11:31:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSQng-00049K-7A for qemu-devel@nongnu.org; Wed, 27 Jul 2016 11:31:16 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:36444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSQnf-00049F-VO for qemu-devel@nongnu.org; Wed, 27 Jul 2016 11:31:12 -0400 Date: Wed, 27 Jul 2016 11:31:09 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <498510289.9083764.1469633469486.JavaMail.zimbra@redhat.com> In-Reply-To: <1469632916-28595-1-git-send-email-minyard@acm.org> References: <1469632916-28595-1-git-send-email-minyard@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] ipmi: Remove hotplug from IPMI BMCs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: minyard@acm.org Cc: qemu-devel@nongnu.org, Corey Minyard Hi ----- Original Message ----- > From: Corey Minyard >=20 > No hotplug support, make sure it doesn't happen. >=20 > Signed-off-by: Corey Minyard Reviewed-by: Marc-Andr=C3=A9 Lureau > --- > hw/ipmi/ipmi_bmc_extern.c | 1 + > hw/ipmi/ipmi_bmc_sim.c | 1 + > 2 files changed, 2 insertions(+) >=20 > This is my proposed patch instead of "ipmi:free extern timer" > send by Marc-Andre. >=20 > diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c > index 157879e..ebd0d8d 100644 > --- a/hw/ipmi/ipmi_bmc_extern.c > +++ b/hw/ipmi/ipmi_bmc_extern.c > @@ -499,6 +499,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *o= c, > void *data) > =20 > bk->handle_command =3D ipmi_bmc_extern_handle_command; > bk->handle_reset =3D ipmi_bmc_extern_handle_reset; > + dc->hotpluggable =3D false; > dc->realize =3D ipmi_bmc_extern_realize; > dc->props =3D ipmi_bmc_extern_properties; > } > diff --git a/hw/ipmi/ipmi_bmc_sim.c b/hw/ipmi/ipmi_bmc_sim.c > index dc9c14c..190e169 100644 > --- a/hw/ipmi/ipmi_bmc_sim.c > +++ b/hw/ipmi/ipmi_bmc_sim.c > @@ -1791,6 +1791,7 @@ static void ipmi_sim_class_init(ObjectClass *oc, vo= id > *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > IPMIBmcClass *bk =3D IPMI_BMC_CLASS(oc); > =20 > + dc->hotpluggable =3D false; > dc->realize =3D ipmi_sim_realize; > bk->handle_command =3D ipmi_sim_handle_command; > } > -- > 2.7.4 >=20 >=20