On 02/09/2012 01:31 PM, Gleb Natapov wrote:
Real HW may have other ways to notify BIOS that system was S3 suspended (special chipset register for instance). I think we can write DSDT magic to write RTC for us, but I prefer to do it from inside QEMU.
Heh, I would prefer DSDT magic, but I wouldn't want to write it. ;)
> RTC memory is nvram, what happens if I remove the mains plug while > the system is in S3? RTC is battery backed, but what do you expect will happen to main memory where all your data resides during S3 in this case anyway?
Ah, I confused the ACPI resume vector with the BIOS vector at 0040:0067. No ACPI tables -> no resume vector, and S3 resume will fail.
Paolo