From patchwork Mon Oct 22 09:23:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pingfank@linux.vnet.ibm.com X-Patchwork-Id: 193182 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 26C072C00F8 for ; Tue, 23 Oct 2012 02:31:48 +1100 (EST) Received: from localhost ([::1]:59797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQJyj-0004G4-Jf for incoming@patchwork.ozlabs.org; Mon, 22 Oct 2012 11:31:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQEFW-0002rf-Fc for qemu-devel@nongnu.org; Mon, 22 Oct 2012 05:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQEFP-0006hv-DB for qemu-devel@nongnu.org; Mon, 22 Oct 2012 05:24:42 -0400 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:39424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQEFO-0006hn-PY for qemu-devel@nongnu.org; Mon, 22 Oct 2012 05:24:35 -0400 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 22 Oct 2012 14:54:31 +0530 Received: from d28relay03.in.ibm.com (9.184.220.60) by e28smtp04.in.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 22 Oct 2012 14:54:29 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9M9OSUh35193062 for ; Mon, 22 Oct 2012 14:54:28 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9MEsKD4029079 for ; Mon, 22 Oct 2012 14:54:21 GMT Received: from oc8440477808.cn.ibm.com (oc8440477808.cn.ibm.com [9.115.122.202]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9MErrUo026674; Mon, 22 Oct 2012 14:54:19 GMT From: Liu Ping Fan To: qemu-devel@nongnu.org Date: Mon, 22 Oct 2012 17:23:57 +0800 Message-Id: <1350897839-29593-15-git-send-email-pingfank@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <1350897839-29593-1-git-send-email-pingfank@linux.vnet.ibm.com> References: <1350897839-29593-1-git-send-email-pingfank@linux.vnet.ibm.com> x-cbid: 12102209-5564-0000-0000-000004FB0B76 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 122.248.162.4 X-Mailman-Approved-At: Mon, 22 Oct 2012 11:31:25 -0400 Cc: Stefan Hajnoczi , Marcelo Tosatti , Avi Kivity , Anthony Liguori , Jan Kiszka , Paolo Bonzini Subject: [Qemu-devel] [patch v4 14/16] qdev: introduce stopping state X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add this state to tell the device is disappearing, and not to append new requirement to it any longer. Signed-off-by: Liu Ping Fan --- hw/qdev.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qdev.h b/hw/qdev.h index aeae29e..32f08bc 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -22,6 +22,7 @@ typedef struct BusClass BusClass; enum DevState { DEV_STATE_CREATED = 1, DEV_STATE_INITIALIZED, + DEV_STATE_STOPPING, }; enum {