mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
suspend: switch acpi s3 to new infrastructure.
This patch switches pc s3 suspend over to the new infrastructure. The cmos_s3 qemu_irq is killed, the new notifier is used instead. The xen hack goes away with that too, the hypercall can simply be done in a notifier function now. This patch also makes the guest actually stay suspended instead of leaving suspend instantly, so it is useful for more than just testing whenever the suspend/resume cycle actually works. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
95b363b5c6
commit
da98c8eb4c
10 changed files with 47 additions and 42 deletions
|
@ -430,7 +430,7 @@ static int vt82c686b_pm_initfn(PCIDevice *dev)
|
|||
apm_init(&s->apm, NULL, s);
|
||||
|
||||
acpi_pm_tmr_init(&s->ar, pm_tmr_timer);
|
||||
acpi_pm1_cnt_init(&s->ar, NULL);
|
||||
acpi_pm1_cnt_init(&s->ar);
|
||||
|
||||
pm_smbus_init(&s->dev.qdev, &s->smb);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue