vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-23 Thread Dave Voutila
Hello tech@, Attached is a diff that patches vmd(8) to utilize libevent 2.1 (from ports) in an attempt to test the hypothesis that thread safety will help stabilize Linux guest support. There's some longer detail below about this hypothesis, but let me cut to the chase: ** This is *not* a petitio

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-24 Thread Dave Voutila
On Sat, May 23, 2020 at 9:38 PM Dave Voutila wrote: > > Hello tech@, > > Attached is a diff that patches vmd(8) to utilize libevent 2.1 (from > ports) in an attempt to test the hypothesis that thread safety will > help stabilize Linux guest support. There's some longer detail below > about this hy

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-25 Thread Martin Pieuchot
On 24/05/20(Sun) 07:56, Dave Voutila wrote: > On Sat, May 23, 2020 at 9:38 PM Dave Voutila wrote: > > > > Hello tech@, > > > > Attached is a diff that patches vmd(8) to utilize libevent 2.1 (from > > ports) in an attempt to test the hypothesis that thread safety will > > help stabilize Linux guest

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-25 Thread Claudio Jeker
On Mon, May 25, 2020 at 10:02:27AM +0200, Martin Pieuchot wrote: > On 24/05/20(Sun) 07:56, Dave Voutila wrote: > > On Sat, May 23, 2020 at 9:38 PM Dave Voutila wrote: > > > > > > Hello tech@, > > > > > > Attached is a diff that patches vmd(8) to utilize libevent 2.1 (from > > > ports) in an attemp

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-25 Thread Martin Pieuchot
On 25/05/20(Mon) 10:14, Claudio Jeker wrote: > [...] > One approach to fix this is to ensure that the event functions are > exclusivly used in the main event thread but as usual it is easy to > introduce bugs again. This is a common issue with multi-threaded applications using non thread-safe lib

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-25 Thread Pratik Vyas
* Claudio Jeker [2020-05-25 10:14:11 +0200]: > The problem is that the vm exit is handled by a different thread then the > event loop. So some event_add/evtimer_add calls are done from a different > thread then the main event loop (mainly interrupt processing). > > One approach to fix this is to

Re: vmd(8) and thread safety: a quick proof of concept using libevent 2.1 from ports

2020-05-25 Thread Claudio Jeker
On Mon, May 25, 2020 at 02:14:18AM -0700, Pratik Vyas wrote: > * Claudio Jeker [2020-05-25 10:14:11 +0200]: > > > The problem is that the vm exit is handled by a different thread then the > > event loop. So some event_add/evtimer_add calls are done from a different > > thread then the main event