lkml.org 
[lkml]   [2010]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/20] xenbus: Xen paravirtualised PCI hotplug support.
    Date
    From: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>

    The Xen PCI front driver adds two new states that are utilizez
    for PCI hotplug support. This is a patch pulled from the
    linux-2.6-xen-sparse tree.

    Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
    ---
    drivers/xen/xenbus/xenbus_client.c | 2 ++
    include/xen/interface/io/xenbus.h | 8 +++++++-
    2 files changed, 9 insertions(+), 1 deletions(-)

    diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c
    index 7b3e973..6066eb9 100644
    --- a/drivers/xen/xenbus/xenbus_client.c
    +++ b/drivers/xen/xenbus/xenbus_client.c
    @@ -50,6 +50,8 @@ const char *xenbus_strstate(enum xenbus_state state)
    [ XenbusStateConnected ] = "Connected",
    [ XenbusStateClosing ] = "Closing",
    [ XenbusStateClosed ] = "Closed",
    + [XenbusStateReconfiguring] = "Reconfiguring",
    + [XenbusStateReconfigured] = "Reconfigured",
    };
    return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID";
    }
    diff --git a/include/xen/interface/io/xenbus.h b/include/xen/interface/io/xenbus.h
    index 46508c7..9fda532 100644
    --- a/include/xen/interface/io/xenbus.h
    +++ b/include/xen/interface/io/xenbus.h
    @@ -27,8 +27,14 @@ enum xenbus_state
    XenbusStateClosing = 5, /* The device is being closed
    due to an error or an unplug
    event. */
    - XenbusStateClosed = 6
    + XenbusStateClosed = 6,

    + /*
    + * Reconfiguring: The device is being reconfigured.
    + */
    + XenbusStateReconfiguring = 7,
    +
    + XenbusStateReconfigured = 8
    };

    #endif /* _XEN_PUBLIC_IO_XENBUS_H */
    --
    1.7.0.1


    \
     
     \ /
      Last update: 2010-08-04 20:23    [W:4.683 / U:0.216 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site