From: Mukesh Rathor Subject: [PATCH V0] PVH: pit related hang from guest shutdown Date: Fri, 7 Mar 2014 18:28:37 -0800 Message-ID: <1394245718-6791-1-git-send-email-mukesh.rathor@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WM70S-000187-Lm for xen-devel@lists.xenproject.org; Sat, 08 Mar 2014 02:28:56 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: George.Dunlap@eu.citrix.com, keir.xen@gmail.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Hi, I just upgraded by domU and ran into this pit related hang again for pvh. During shutdown, the guest does: [ 24.617014] pcspkr pcspkr: shutdown this results in call to handle_pio() --> .. --> handle_pvh_io() -> .. handle_speaker_io() causing xen to hang on : spin_lock(&vpit->lock); because pit_init has not be called and the spin lock didn't get initialized. At least I see in my earlier patches I had call to pit_init, but it seems to have fallen thru the cracks in final checkins. Anyways, here's my first cut at the proposed fix. Other alternative would be to just register handle_speaker_io handler in pit_reset, since we don't seem to be emulating pit for pvh. LMK suggestions if this fix is not very congenial. George, I think this should be a candidate for next 4.4 RC. Fix is simple and it avoids hang in xen from pvh guest shutdown. thanks mukesh