|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH for-4.18] tools/libs/evtchn: Drop assert()s referencing MiniOS's main_thread
This breaks the build with debug active, as main_thread is not an exposed
symbol.
This is a minimal version of commit bc4fe94a69d4 ("tools/libs/evtchn: replace
assert()s in stubdom with proper locking"). It leaves MiniOS no worse off
with respect to thread safety.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Jan Beulich <JBeulich@xxxxxxxx>
CC: Juergen Gross <jgross@xxxxxxxx>
Speculative fix. Gitlab is a little busy right now:
https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1536597753
---
tools/libs/evtchn/minios.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/libs/evtchn/minios.c b/tools/libs/evtchn/minios.c
index 28743cb05575..e33ddec7e7f0 100644
--- a/tools/libs/evtchn/minios.c
+++ b/tools/libs/evtchn/minios.c
@@ -195,7 +195,6 @@ xenevtchn_port_or_error_t
xenevtchn_bind_unbound_port(xenevtchn_handle *xce,
int ret;
evtchn_port_t port;
- assert(get_current() == main_thread);
port_info = port_alloc(xce);
if ( port_info == NULL )
return -1;
@@ -226,7 +225,6 @@ xenevtchn_port_or_error_t
xenevtchn_bind_interdomain(xenevtchn_handle *xce,
evtchn_port_t local_port;
int ret;
- assert(get_current() == main_thread);
port_info = port_alloc(xce);
if ( port_info == NULL )
return -1;
@@ -279,7 +277,6 @@ xenevtchn_port_or_error_t
xenevtchn_bind_virq(xenevtchn_handle *xce,
struct port_info *port_info;
evtchn_port_t port;
- assert(get_current() == main_thread);
port_info = port_alloc(xce);
if ( port_info == NULL )
return -1;
base-commit: 2b18f341cb5c66bbc3260a8e0dd9f42b2f58d78c
prerequisite-patch-id: 39749d67636f2c0377cd95d938cf0ae5da72403b
prerequisite-patch-id: 75378607486a1a3909481c243f3dfd163ae433dc
--
2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |