Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-05-15 Thread Elizabeth Figura
On Wednesday, April 17, 2024 3:02:13 PM CDT Elizabeth Figura wrote: > > > Except for the "unowned" semantics of zero, the actual value of the > > > owner identifier is not interpreted by the ntsync driver at all. The > > > intended use is to store a thread identifier; however, the ntsync > > > driv

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-05-06 Thread Elizabeth Figura
On Friday, April 19, 2024 3:46:07 PM CDT Elizabeth Figura wrote: > On Friday, 19 April 2024 11:16:11 CDT Peter Zijlstra wrote: > > > On Tue, Apr 16, 2024 at 05:18:56PM -0500, Elizabeth Figura wrote: > > > > > On Tuesday, 16 April 2024 16:18:24 CDT Elizabeth Figura wrote: > > > > > > > On Tuesday

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-05-06 Thread Elizabeth Figura
On Friday, April 19, 2024 3:46:07 PM CDT Elizabeth Figura wrote: > On Friday, 19 April 2024 11:16:11 CDT Peter Zijlstra wrote: > > > On Tue, Apr 16, 2024 at 05:18:56PM -0500, Elizabeth Figura wrote: > > > > > On Tuesday, 16 April 2024 16:18:24 CDT Elizabeth Figura wrote: > > > > > > > On Tuesday

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-19 Thread Elizabeth Figura
On Friday, 19 April 2024 11:16:11 CDT Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 05:18:56PM -0500, Elizabeth Figura wrote: > > On Tuesday, 16 April 2024 16:18:24 CDT Elizabeth Figura wrote: > > > On Tuesday, 16 April 2024 03:14:21 CDT Peter Zijlstra wrote: > > > > I don't support GE has it in

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-19 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 05:18:56PM -0500, Elizabeth Figura wrote: > On Tuesday, 16 April 2024 16:18:24 CDT Elizabeth Figura wrote: > > On Tuesday, 16 April 2024 03:14:21 CDT Peter Zijlstra wrote: > > > I don't support GE has it in his builds? Last time I tried, building > > > Wine was a bit of a pa

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-17 Thread Elizabeth Figura
On Wednesday, 17 April 2024 05:01:32 CDT Peter Zijlstra wrote: > > > > === > > NT synchronization primitive driver > > === > > > > This page documents the user-space API for the ntsync driver. > > > > ntsync is a support driver for

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-17 Thread Peter Zijlstra
On Wed, Apr 17, 2024 at 01:05:47AM -0500, Elizabeth Figura wrote: > Here's a (slightly ad-hoc) simplification of the patch into text form inlined > into this message; hopefully it's readable enough. Thanks! Still needed: s/\`\`/"/g s/\.\.\ //g But then it's readable > > ==

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Elizabeth Figura
On Wednesday, 17 April 2024 00:22:18 CDT Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 04:18:19PM -0500, Elizabeth Figura wrote: > > Let me know if that's good enough or if I should try to render it into > > plain text somehow. > > Plain text is much preferred. I'm more of a text editor kinda gu

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 04:18:24PM -0500, Elizabeth Figura wrote: > Is the concern about poor performance when ntsync is in use, or is nesting a > lot of spinlocks like that something that could cause problems for unrelated > tasks? I'm not familiar enough with the scheduler to know if this can

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 04:18:19PM -0500, Elizabeth Figura wrote: > Let me know if that's good enough or if I should try to render it into plain > text somehow. Plain text is much preferred. I'm more of a text editor kinda guy -- being a programmer and all that. > >

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 04:18:17PM -0500, Elizabeth Figura wrote: > Over different lists. I don't know if there's a better way to name things to > make that clearer. D'oh, reading hard. I'll stare more.

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Elizabeth Figura
On Tuesday, 16 April 2024 16:18:24 CDT Elizabeth Figura wrote: > On Tuesday, 16 April 2024 03:14:21 CDT Peter Zijlstra wrote: > > I don't support GE has it in his builds? Last time I tried, building > > Wine was a bit of a pain. > > It doesn't seem so. I tried to build a GE-compatible ntsync build

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Elizabeth Figura
On Tuesday, 16 April 2024 03:14:21 CDT Peter Zijlstra wrote: > On Mon, Apr 15, 2024 at 08:08:10PM -0500, Elizabeth Figura wrote: > > This patch series implements a new char misc driver, /dev/ntsync, which is > > used to implement Windows NT synchronization primitives. > > This patch series does no

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Elizabeth Figura
On Tuesday, 16 April 2024 11:05:53 CDT Peter Zijlstra wrote: > On Mon, Apr 15, 2024 at 08:08:10PM -0500, Elizabeth Figura wrote: > > The intended semantics of the patches are broadly intended to match those > > of the corresponding Windows functions. For those not already familiar > > with the Wind

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Elizabeth Figura
On Tuesday, 16 April 2024 11:19:17 CDT Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 05:53:45PM +0200, Peter Zijlstra wrote: > > On Tue, Apr 16, 2024 at 05:50:14PM +0200, Peter Zijlstra wrote: > > > On Tue, Apr 16, 2024 at 10:14:21AM +0200, Peter Zijlstra wrote: > > > > > Some aspects of the impl

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 05:53:45PM +0200, Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 05:50:14PM +0200, Peter Zijlstra wrote: > > On Tue, Apr 16, 2024 at 10:14:21AM +0200, Peter Zijlstra wrote: > > > > > > Some aspects of the implementation may deserve particular comment: > > > > > > > > * In

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Mon, Apr 15, 2024 at 08:08:10PM -0500, Elizabeth Figura wrote: > The intended semantics of the patches are broadly intended to match those of > the > corresponding Windows functions. For those not already familiar with the > Windows > functions (or their undocumented behaviour), patch 27/27 p

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 05:50:14PM +0200, Peter Zijlstra wrote: > On Tue, Apr 16, 2024 at 10:14:21AM +0200, Peter Zijlstra wrote: > > > > Some aspects of the implementation may deserve particular comment: > > > > > > * In the interest of performance, each object is governed only by a single > > >

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Tue, Apr 16, 2024 at 10:14:21AM +0200, Peter Zijlstra wrote: > > Some aspects of the implementation may deserve particular comment: > > > > * In the interest of performance, each object is governed only by a single > > spinlock. However, NTSYNC_IOC_WAIT_ALL requires that the state of multipl

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Greg Kroah-Hartman
On Tue, Apr 16, 2024 at 10:14:21AM +0200, Peter Zijlstra wrote: > On Mon, Apr 15, 2024 at 08:08:10PM -0500, Elizabeth Figura wrote: > > This patch series implements a new char misc driver, /dev/ntsync, which is > > used > > to implement Windows NT synchronization primitives. > > This patch series

Re: [PATCH v4 00/30] NT synchronization primitive driver

2024-04-16 Thread Peter Zijlstra
On Mon, Apr 15, 2024 at 08:08:10PM -0500, Elizabeth Figura wrote: > This patch series implements a new char misc driver, /dev/ntsync, which is > used > to implement Windows NT synchronization primitives. This patch series does not apply to anything I have at hand. Nor does it state anything expli

[PATCH v4 00/30] NT synchronization primitive driver

2024-04-15 Thread Elizabeth Figura
This patch series implements a new char misc driver, /dev/ntsync, which is used to implement Windows NT synchronization primitives. NT synchronization primitives are unique in that the wait functions both are vectored, operate on multiple types of object with different behaviour (mutex, semaphore,