]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commitdiff
ACPI S3 state wake up - change to write flag behaviour
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 23 Jul 2008 18:01:00 +0000 (19:01 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 Jul 2008 18:01:00 +0000 (19:01 +0100)
ioemu-remote: The device model needs to write in the ACPI tables when it
wakes up from S3 state.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
hw/xen_platform.c

index 430e603054309483d8bd4ffc33f6cd2daa3c3b4a..06f6edbf752b8a4f0c0589cdd06363b0e0157871 100644 (file)
@@ -59,7 +59,7 @@ static void xen_platform_ioport_writeb(void *opaque, uint32_t addr, uint32_t val
     case 0: /* Platform flags */ {
         hvmmem_type_t mem_type = (val & PFFLAG_ROM_LOCK) ?
             HVMMEM_ram_ro : HVMMEM_ram_rw;
-        if (xc_hvm_set_mem_type(xc_handle, domid, mem_type, 0xc0, 0x40))
+        if (xc_hvm_set_mem_type(xc_handle, domid, mem_type, 0xc0, 0x20))
             fprintf(logfile,"xen_platform: unable to change ro/rw "
                     "state of ROM memory area!\n");
         else