[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC PATCH V3 19/22] Enable exteneded event channel ABI query



Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 xen/common/event_channel.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index bb6e5f9..88679d5 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -1219,12 +1219,14 @@ static long evtchn_register_extended(struct 
evtchn_register_extended *reg)
 
     switch ( reg->cmd )
     {
-    case EVTCHN_EXTENDED_NONE:
-    default:
-        rc = -EINVAL;
+    case EVTCHN_EXTENDED_QUERY:
+        rc = extended_event_channel;
+        break;
     case EVTCHN_EXTENDED_L3:
         rc = evtchn_register_3level(&reg->u.l3);
         break;
+    default:
+        rc = -EINVAL;
     }
 
     spin_unlock(&d->event_lock);
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.