tools/libxenevtchn: propagate xenevtchn_open() flags parameter

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>
This commit is contained in:
Juergen Gross authored and Andrew Cooper committed 2021-01-15 11:44:47 +00:00
1 parent f7918dc8f9
commit 935e5fb0d5
7 files changed
+7 -7

No files matched your search

+1 -1
View 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;
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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);
+1 -1
View 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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.