From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Guyader Subject: [PATCH] ioemu-remote: ACPI S3 state wake up Date: Wed, 23 Jul 2008 18:51:26 +0100 Message-ID: <48876F9E.8020305@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000706090404070401010809" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000706090404070401010809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000706090404070401010809 Content-Type: text/plain; name="s3_state_write_e820.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="s3_state_write_e820.patch" diff --git a/hw/xen_platform.c b/hw/xen_platform.c index 430e603..06f6edb 100644 --- a/hw/xen_platform.c +++ b/hw/xen_platform.c @@ -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 --------------000706090404070401010809 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000706090404070401010809--