]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
tools/libxenevtchn: propagate xenevtchn_open() flags parameter
authorJuergen Gross <jgross@suse.com>
Fri, 15 Jan 2021 08:29:37 +0000 (09:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Jan 2021 11:44:47 +0000 (11:44 +0000)
Propagate the flags parameter of xenevtchn_open() to the OS-specific
handlers in order to enable handling them there.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/evtchn/core.c
tools/libs/evtchn/freebsd.c
tools/libs/evtchn/linux.c
tools/libs/evtchn/minios.c
tools/libs/evtchn/netbsd.c
tools/libs/evtchn/private.h
tools/libs/evtchn/solaris.c

index 79990d0027d313a7b034a8ccbc5f3af7240da8d0..d3cc93e98f6baa6dd221c1ee8b00759b09f0f3bc 100644 (file)
@@ -60,7 +60,7 @@ xenevtchn_handle *xenevtchn_open(xentoollog_logger *logger, unsigned int flags)
             goto err;
     }
 
-    rc = osdep_evtchn_open(xce);
+    rc = osdep_evtchn_open(xce, flags);
     if ( rc < 0 )
         goto err;
 
index 554af122c85fb6d3b4a8d4de5244a1b1b3c4261f..bb601f350ff021a1006763525b0461cf040a01fd 100644 (file)
@@ -31,7 +31,7 @@
 
 #define EVTCHN_DEV      "/dev/xen/evtchn"
 
-int osdep_evtchn_open(xenevtchn_handle *xce)
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
 {
     int fd = open(EVTCHN_DEV, O_RDWR|O_CLOEXEC);
 
index 9aaeef0faf9f6f6cd45a3c1d74093d479d06f946..56b4b507974d43240b273e2adc833cde9d66b927 100644 (file)
@@ -34,7 +34,7 @@
 #define O_CLOEXEC 0
 #endif
 
-int osdep_evtchn_open(xenevtchn_handle *xce)
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
 {
     int fd = open("/dev/xen/evtchn", O_RDWR|O_CLOEXEC);
 
index b4e09bff3b373ac073e535ee810eea4be223ffb9..bd5b7f5e0d1c75e1825636d06cf122b60c4025b2 100644 (file)
@@ -69,7 +69,7 @@ static void port_dealloc(struct evtchn_port_info *port_info)
     free(port_info);
 }
 
-int osdep_evtchn_open(xenevtchn_handle *xce)
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
 {
     int fd = alloc_fd(FTYPE_EVTCHN);
 
index 53f9299ebbff8ff21268bc302c50223b6f7a18e6..60a92359788c83c229b044c1461d78767ad75242 100644 (file)
@@ -31,7 +31,7 @@
 
 #define EVTCHN_DEV_NAME  "/dev/xenevt"
 
-int osdep_evtchn_open(xenevtchn_handle *xce)
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
 {
     int fd = open(EVTCHN_DEV_NAME, O_NONBLOCK|O_RDWR);
 
index 31e595bea29b5c711714a24cc393d9888ad842f4..319d1996d7eb697a88615afc6294fb1217fdc21d 100644 (file)
@@ -14,7 +14,7 @@ struct xenevtchn_handle {
     Xentoolcore__Active_Handle tc_ah;
 };
 
-int osdep_evtchn_open(xenevtchn_handle *xce);
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags);
 int osdep_evtchn_close(xenevtchn_handle *xce);
 int osdep_evtchn_restrict(xenevtchn_handle *xce, domid_t domid);
 
index d87abc553cabb64063ea01ebbb299a73d2164adc..df9579df1778f3e5e74fc0ce5aaacc20a9ecc146 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "private.h"
 
-int osdep_evtchn_open(xenevtchn_handle *xce)
+int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
 {
     int fd;