From: Wei Liu Subject: [RFC PATCH V3 13/22] Add evtchn_abi_str Date: Wed, 27 Feb 2013 14:34:06 +0000 Message-ID: <1361975655-22295-14-git-send-email-wei.liu2@citrix.com> References: <1361975655-22295-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1361975655-22295-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org, jbeulich@suse.com, keir@xen.org, ian.campbell@citrix.com Cc: Wei Liu , david.vrabel@citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Wei Liu --- 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