diff options
author | Zhu Guihua | 2015-05-13 11:21:36 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-06-03 18:19:16 +0200 |
commit | ca9b46bcecc0f06882eec1b152b71f93a066da79 (patch) | |
tree | 2032515389c77fe993967b79f864f33d751d2274 /hw/acpi/cpu_hotplug.c | |
parent | virtio: 64bit features fixups. (diff) | |
download | qemu-ca9b46bcecc0f06882eec1b152b71f93a066da79.tar.gz qemu-ca9b46bcecc0f06882eec1b152b71f93a066da79.tar.xz qemu-ca9b46bcecc0f06882eec1b152b71f93a066da79.zip |
acpi: add acpi_send_gpe_event() to rise sci for hotplug
Add a new API named acpi_send_gpe_event() to send hotplug SCI.
This API can be used by pci, cpu and memory hotplug.
This patch is rebased on master.
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/acpi/cpu_hotplug.c')
-rw-r--r-- | hw/acpi/cpu_hotplug.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/acpi/cpu_hotplug.c b/hw/acpi/cpu_hotplug.c index b8ebfadc30..f5b9972f2d 100644 --- a/hw/acpi/cpu_hotplug.c +++ b/hw/acpi/cpu_hotplug.c @@ -59,8 +59,7 @@ void acpi_cpu_plug_cb(ACPIREGS *ar, qemu_irq irq, return; } - ar->gpe.sts[0] |= ACPI_CPU_HOTPLUG_STATUS; - acpi_update_sci(ar, irq); + acpi_send_gpe_event(ar, irq, ACPI_CPU_HOTPLUG_STATUS); } void acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner, |