From: Antoine Martin Subject: kvm spinning on exit Date: Sun, 18 Oct 2009 18:48:14 +0700 Message-ID: <4ADB007E.2080304@nagafix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit To: "kvm@vger.kernel.org" Return-path: Received: from mamba.nagafix.co.uk ([194.145.196.68]:42698 "EHLO mail.nagafix.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752216AbZJRLsQ (ORCPT ); Sun, 18 Oct 2009 07:48:16 -0400 Received: (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: antoine@nagafix.co.uk) by mail.nagafix.co.uk (Postfix) with ESMTPSA id 7622DB7 for ; Sun, 18 Oct 2009 12:48:19 +0100 (BST) Sender: kvm-owner@vger.kernel.org List-ID: Hi, I've had this problem before and worked around it using scripts, but this seems to happen a lot more now that a host has been upgraded to 2.6.31.4 (could just be me noticing more too) After the guest kernel shuts off, the qemu process ends up spinning, consuming 200% cpu (both cores!) and strace reveals it is truly spinning: [pid 14382] wait4(3604, [pid 14383] <... ioctl resumed> , 0) = 0 [pid 14382] <... wait4 resumed> 0x7fff2e8ae02c, 0, NULL) = -1 ECHILD (No child processes) [pid 14383] ioctl(14, 0xae80 This is repeated 100% identical, ad-infinitum. Host qemu 0.10.50 Cheers Antoine