From: Gu Zheng <guz.fnst@cn.fujitsu.com>
To: imammedo@redhat.com
Cc: zhugh.fnst@cn.fujitsu.com, qemu-devel@nongnu.org,
tangchen@cn.fujitsu.com, guz.fnst@cn.fujitsu.com,
isimatu.yasuaki@jp.fujitsu.com, chen.fan.fnst@cn.fujitsu.com,
anshul.makkar@profitbricks.com, afaerber@suse.de
Subject: [Qemu-devel] [PATCH 08/12] acpi/piix4: add cpu hot unplug callback support
Date: Fri, 12 Dec 2014 16:43:14 +0800 [thread overview]
Message-ID: <1418373798-25413-9-git-send-email-guz.fnst@cn.fujitsu.com> (raw)
In-Reply-To: <1418373798-25413-1-git-send-email-guz.fnst@cn.fujitsu.com>
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
---
hw/acpi/piix4.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
index 9b75780..2a923fc 100644
--- a/hw/acpi/piix4.c
+++ b/hw/acpi/piix4.c
@@ -375,8 +375,14 @@ static void piix4_device_unplug_request_cb(HotplugHandler *hotplug_dev,
static void piix4_device_unplug_cb(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp)
{
- error_setg(errp, "acpi: device unplug for not supported device"
- " type: %s", object_get_typename(OBJECT(dev)));
+ PIIX4PMState *s = PIIX4_PM(hotplug_dev);
+
+ if (object_dynamic_cast(OBJECT(dev), TYPE_CPU)) {
+ acpi_cpu_unplug_cb(&s->ar, s->irq, &s->gpe_cpu, dev, errp);
+ } else {
+ error_setg(errp, "acpi: device unplug for not supported device"
+ " type: %s", object_get_typename(OBJECT(dev)));
+ }
}
static void piix4_update_bus_hotplug(PCIBus *pci_bus, void *opaque)
--
1.7.7
next prev parent reply other threads:[~2014-12-12 8:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 8:43 [Qemu-devel] [PATCH 00/12] cpu: add i386 cpu hot remove support Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 01/12] x86: add x86_cpu_unrealizefn() for cpu apic remove Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 02/12] i386/cpu: add instance finalize callback Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 03/12] acpi/cpu: add cpu hot unplug request callback function Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 04/12] acpi/piix4: add cpu hot unplug request callback support Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 05/12] acpi/ich9: " Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 06/12] pc: " Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 07/12] acpi/cpu: add cpu hot unplug callback function Gu Zheng
2014-12-12 8:43 ` Gu Zheng [this message]
2014-12-12 8:43 ` [Qemu-devel] [PATCH 09/12] acpi/ich9: add cpu hot unplug support Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 10/12] pc: add cpu hot unplug callback support Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 11/12] cpu hotplug: implement function cpu_status_write() for vcpu ejection Gu Zheng
2014-12-12 8:43 ` [Qemu-devel] [PATCH 12/12] cpus: reclaim allocated vCPU objects Gu Zheng
2014-12-19 5:00 ` [Qemu-devel] [PATCH 00/12] cpu: add i386 cpu hot remove support Gu Zheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418373798-25413-9-git-send-email-guz.fnst@cn.fujitsu.com \
--to=guz.fnst@cn.fujitsu.com \
--cc=afaerber@suse.de \
--cc=anshul.makkar@profitbricks.com \
--cc=chen.fan.fnst@cn.fujitsu.com \
--cc=imammedo@redhat.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=qemu-devel@nongnu.org \
--cc=tangchen@cn.fujitsu.com \
--cc=zhugh.fnst@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).