From: Yoshiaki Tamura Subject: [RFC][PATCH 09/13] Kemari: add XenbusStateAttached to xenbus Date: Fri, 06 Mar 2009 15:47:02 +0900 Message-ID: <49B0C6E6.6040708@lab.ntt.co.jp> References: <49B0B8DC.5000606@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49B0B8DC.5000606@lab.ntt.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: ospk-vm@lab.ntt.co.jp, Ian Pratt , ian.jackson@eu.citrix.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org This patch adds a new xenbus state XenbusStateAttached, which is used when Kemari restores the guest on the secondary after the failover. Signed-off-by: Yoshi Tamura Signed-off-by: Yoshisato Yanagisawa --- drivers/xen/xenbus/xenbus_client.c | 3 ++- include/xen/interface/io/xenbus.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff -r e410857fd83c drivers/xen/xenbus/xenbus_client.c --- a/drivers/xen/xenbus/xenbus_client.c Wed Oct 22 14:55:29 2008 +0100 +++ b/drivers/xen/xenbus/xenbus_client.c Thu Mar 05 09:56:40 2009 +0900 @@ -52,7 +52,8 @@ [ XenbusStateInitialised ] = "Initialised", [ XenbusStateConnected ] = "Connected", [ XenbusStateClosing ] = "Closing", - [ XenbusStateClosed ] = "Closed", + [ XenbusStateClosed ] = "Closed", + [ XenbusStateAttached ] = "Attached", }; return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID"; } diff -r e410857fd83c include/xen/interface/io/xenbus.h --- a/include/xen/interface/io/xenbus.h Wed Oct 22 14:55:29 2008 +0100 +++ b/include/xen/interface/io/xenbus.h Thu Mar 05 09:56:40 2009 +0900 @@ -63,7 +63,9 @@ */ XenbusStateReconfiguring = 7, - XenbusStateReconfigured = 8 + XenbusStateReconfigured = 8, + + XenbusStateAttached = 9 }; typedef enum xenbus_state XenbusState;