From: Ian Jackson Subject: Re: [PATCH] Introduce an s3 test Date: Wed, 1 May 2013 11:56:31 +0100 Message-ID: <20864.62687.527969.563181@mariner.uk.xensource.com> References: <1366997193-4991-1-git-send-email-benjamin.guthro@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1366997193-4991-1-git-send-email-benjamin.guthro@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ben Guthro Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ben Guthro writes ("[PATCH] Introduce an s3 test"): > From: root > > This test attempts to have an initial pass at introducing a test to catch regressions in S3. > It currently just suspends for N seconds, and checks xl dmesg for a partiular message printed > when S3 is complete. Thanks. Most of this looks plausible. I have some comments: > +# Put the machine to sleep > +target_cmd_root($ho, "pm-suspend"); > + > +# Give the machine some time to go to sleep. > +sleep (5 + $timeout); > + > +# check log for resume message > +poll_loop(4*$timeout, 2, 's3-confirm-resumed', > + target_cmd_output($ho,"xl dmesg | grep 'ACPI S' | tail -1 | " . > + "grep -n 'Finishing wakeup from S3 state'")); Why does this need a poll loop ? Surely after the machine comes out of suspend it should be up right away ? > +# TODO: > +# - Check pcpu state > +# - Affinity has been restored > +# - C-states are not lost > +# - CPU pools are all correct We don't do any cpu affinity testing at all right now. Leaving this as a TODO here is fine. > +# - Check timer queues are correct > +# - vcpu_singleshot_timer on every pcpu I'm not sure I follow this. Wouldn't messed up timer queues cause other trouble in the guest ? > +# - Check for kernel Oops > +# - Check for Xen WARN These are a good idea but should perhaps be a separate test step. Ian.