xenbus: Xen paravirtualised PCI hotplug support.
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>
This commit is contained in:
parent
b5401a96b5
commit
89afb6e46a
|
@ -50,6 +50,8 @@ const char *xenbus_strstate(enum xenbus_state state)
|
||||||
[ XenbusStateConnected ] = "Connected",
|
[ XenbusStateConnected ] = "Connected",
|
||||||
[ XenbusStateClosing ] = "Closing",
|
[ XenbusStateClosing ] = "Closing",
|
||||||
[ XenbusStateClosed ] = "Closed",
|
[ XenbusStateClosed ] = "Closed",
|
||||||
|
[XenbusStateReconfiguring] = "Reconfiguring",
|
||||||
|
[XenbusStateReconfigured] = "Reconfigured",
|
||||||
};
|
};
|
||||||
return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID";
|
return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID";
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,8 +27,14 @@ enum xenbus_state
|
||||||
XenbusStateClosing = 5, /* The device is being closed
|
XenbusStateClosing = 5, /* The device is being closed
|
||||||
due to an error or an unplug
|
due to an error or an unplug
|
||||||
event. */
|
event. */
|
||||||
XenbusStateClosed = 6
|
XenbusStateClosed = 6,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reconfiguring: The device is being reconfigured.
|
||||||
|
*/
|
||||||
|
XenbusStateReconfiguring = 7,
|
||||||
|
|
||||||
|
XenbusStateReconfigured = 8
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _XEN_PUBLIC_IO_XENBUS_H */
|
#endif /* _XEN_PUBLIC_IO_XENBUS_H */
|
||||||
|
|
Loading…
Reference in a new issue