qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V9 16/16] acpi-piix4: Add Xen hypercall for slee


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH V9 16/16] acpi-piix4: Add Xen hypercall for sleep state.
Date: Wed, 26 Jan 2011 17:11:38 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10

On 01/25/2011 08:29 AM, address@hidden wrote:
From: Anthony PERARD<address@hidden>

Signed-off-by: Anthony PERARD<address@hidden>
---
  hw/acpi_piix4.c |    4 ++++
  hw/xen.h        |    2 ++
  xen-all.c       |    7 +++++++
  xen-stub.c      |    4 ++++
  4 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
index 5bbc2b5..ea94bf9 100644
--- a/hw/acpi_piix4.c
+++ b/hw/acpi_piix4.c
@@ -23,6 +23,7 @@
  #include "acpi.h"
  #include "sysemu.h"
  #include "range.h"
+#include "xen.h"

  //#define DEBUG

@@ -181,6 +182,9 @@ static void pm_ioport_write(IORange *ioport, uint64_t addr, 
unsigned width,
                      if (s->cmos_s3) {
                          qemu_irq_raise(s->cmos_s3);
                      }
+                    if (xen_enabled()) {
+                        xen_set_hvm_sleep_state();
+                    }

Can't you hook into cmos_s3?

Regards,

Anthony Liguori



reply via email to

[Prev in Thread] Current Thread [Next in Thread]