From patchwork Tue Feb 9 20:58:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 78194 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o19KwTKf022621 for ; Tue, 9 Feb 2010 20:58:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252Ab0BIU6Z (ORCPT ); Tue, 9 Feb 2010 15:58:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8089 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791Ab0BIU6Y (ORCPT ); Tue, 9 Feb 2010 15:58:24 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o19KwOQe005432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Feb 2010 15:58:24 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o19KwNbe012491; Tue, 9 Feb 2010 15:58:23 -0500 Received: from amt.cnet (vpn-10-112.rdu.redhat.com [10.11.10.112]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o19KwMIE011644; Tue, 9 Feb 2010 15:58:22 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 78CA1652010; Tue, 9 Feb 2010 18:58:08 -0200 (BRST) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o19Kw6jc025228; Tue, 9 Feb 2010 18:58:06 -0200 Date: Tue, 9 Feb 2010 18:58:05 -0200 From: Marcelo Tosatti To: Avi Kivity Cc: kvm@vger.kernel.org, quintela@redhat.com, Gleb Natapov Subject: qemu-kvm: do not allow vcpu stop with in progress PIO Message-ID: <20100209205805.GA25144@amt.cnet> References: <20100128190300.414710338@redhat.com> <20100128190411.495771070@redhat.com> <4B6B1D1F.1080701@redhat.com> <20100204213643.GC2766@amt.cnet> <4B6B4031.80008@redhat.com> <20100208224119.GA6516@amt.cnet> <4B710300.7090903@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4B710300.7090903@redhat.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 09 Feb 2010 20:58:30 +0000 (UTC) Index: qemu-kvm/qemu-kvm.c =================================================================== --- qemu-kvm.orig/qemu-kvm.c +++ qemu-kvm/qemu-kvm.c @@ -967,6 +967,7 @@ int kvm_run(CPUState *env) run->io.direction, run->io.size, run->io.count); + r = 0; break; case KVM_EXIT_DEBUG: r = handle_debug(env);