Patchwork [v4,14/16] qdev: introduce stopping state

login
register
mail settings
Submitter pingfank@linux.vnet.ibm.com
Date Oct. 22, 2012, 9:23 a.m.
Message ID <1350897839-29593-15-git-send-email-pingfank@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/193182/
State New
Headers show

Comments

pingfank@linux.vnet.ibm.com - Oct. 22, 2012, 9:23 a.m.
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 <pingfank@linux.vnet.ibm.com>
---
 hw/qdev.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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 {