[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH V3 13/22] Add evtchn_abi_str
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/common/event_channel.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 470b8d2..abed10d 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -36,6 +36,20 @@ uint32_t extended_event_channel = (EVTCHN_EXTENDED_NONE | EVTCHN_EXTENDED_L3); +static inline const char * evtchn_abi_str(unsigned int abi) +{ + switch ( abi ) + { + case EVTCHN_EXTENDED_NONE: + return "2-level"; + case EVTCHN_EXTENDED_L3: + return "3-level"; + default: + BUG(); + } + return ""; /* make compiler happy */ +} + #define ERROR_EXIT(_errno) \ do { \ gdprintk(XENLOG_WARNING, \ -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |