From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v3 2/6] suspend: switch acpi s3 to new infrastructure. Date: Thu, 09 Feb 2012 12:17:33 +0100 Message-ID: <4F33AB4D.9070904@redhat.com> References: <1328698819-31269-1-git-send-email-kraxel@redhat.com> <1328698819-31269-3-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1328698819-31269-3-git-send-email-kraxel@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Gerd Hoffmann Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org On 02/08/2012 12:00 PM, Gerd Hoffmann wrote: > +/* set CMOS shutdown status register (index 0xF) as S3_resume(0xFE) > + BIOS will read it and start S3 resume at POST Entry */ > +static void rtc_notify_suspend(Notifier *notifier, void *data) > +{ > + RTCState *s = container_of(notifier, RTCState, suspend_notifier); > + rtc_set_memory(&s->dev, 0xF, 0xFE); > +} > + Out of curiosity, who would set this on real hardware? And since RTC memory is nvram, what happens if I remove the mains plug while the system is in S3? Paolo