From: Ian Campbell Subject: Re: [PATCH] xen: use freeze/restore/thaw PM events for suspend/resume/chkpt Date: Wed, 16 Feb 2011 18:28:10 +0000 Message-ID: <1297880890.3618.5.camel@localhost.localdomain> References: <1297839080-17533-1-git-send-email-rshriram@cs.ubc.ca> <1297856633.21980.6293.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Wed, 2011-02-16 at 18:15 +0000, Shriram Rajagopalan wrote: > I didnt test the patch against the latest xen_suspend patch series you > sent out. I couldnt find it in any of the trees. And since you said > earlier that the xen_hvm_suspend fix would be (re)fixed to PM_FREEZE > after my patch, I refrained from touching it. But I did test with > 2.6.38-rc1 32 bit kernel, PVHVM mode. It "seemed" to work fine for > save/restore/checkpoint. I could see the PM event messages in dmesg > (freeze, thaw, restore related timing stats) Great, thanks. > On a related note, my initial kernel config had somehow enabled > CONFIG_MICROCODE. > So, with a PV kernel (2.6.38-rc1), I got the following WARNING stack > trace for > checkpoint & restore (ie freeze/thaw or freeze/restore) > [...] > sysdev_resume() call we make in drivers/xen/manage.c results in > calling [sysdev_drivers]->(resume)() > Looking at the microcode_core.c driver, the mc_sysdev resume function > raises this warning if more than 1 CPU is online during system resume. This is known issue, the 1 CPU constraint is a native thing and isn't applicable to Xen. There has been a patch floating around for ages. I saw some traffic about it recently, let me dig... ... aha. it went into -mm last week, see <201102082204.p18M4bqc028043@imap1.linux-foundation.org> not bad for a patch originally posted in 2009! http://www.gossamer-threads.com/lists/linux/kernel/1335664 [...] > Of course, disabling CONFIG_MICROCODE makes the warning go away but I > was thinking along the lines of a stock kernel config that has lots of > things enabled. Correct me if I am wrong about this. Consideration for stock kernel configurations (particularly distro configs) is absolutely correct, thanks! Ian.