Re: Userland PCI drivers possible in OpenBSD?

2020-01-12 Thread Andrew Tipton
Joseph Mayer wrote: > Is there some way I can implement PCI drivers in userland in OpenBSD? > > On a quick Internet search, see some discussion for Linux and NetBSD > e.g. [1] however nothing in OpenBSD. > > I may be interested in operating some PCI device manually from my own > program (run as r

Re: Userland PCI drivers possible in OpenBSD?

2020-01-11 Thread Alexandre Ratchov
On Fri, Jan 10, 2020 at 03:58:16AM +, Joseph Mayer wrote: > Maybe this topic is better suited for tech@, you tell: > > Is there some way I can implement PCI drivers in userland in OpenBSD? > > On a quick Internet search, see some discussion for Linux and NetBSD > e.g. [1] however nothing in O

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread Frank Beuth
On Fri, Jan 10, 2020 at 07:23:26PM -0500, gwes wrote: On 1/9/20 10:58 PM, Joseph Mayer wrote: Maybe this topic is better suited for tech@, you tell: Is there some way I can implement PCI drivers in userland in OpenBSD? Is there any reason not to write a conventional device driver and build an

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread William Ahern
On Fri, Jan 10, 2020 at 03:58:16AM +, Joseph Mayer wrote: > Maybe this topic is better suited for tech@, you tell: > > Is there some way I can implement PCI drivers in userland in OpenBSD? In light of the other responses I think the best you could expect is PCI passthrough to a virtual machin

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread gwes
On 1/9/20 10:58 PM, Joseph Mayer wrote: Maybe this topic is better suited for tech@, you tell: Is there some way I can implement PCI drivers in userland in OpenBSD? Is there any reason not to write a conventional device driver and build an OS including that driver? While the kernel environment

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread Tom Smyth
Johannes, Joseph asked a fair question and he got a direct answer and a reason for it from two developers. It may not be the answer that he wanted but the reason for not implementing what very experienced developers and computer scientists determined that usermode PCI drivers like that would intro

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread Theo de Raadt
Raw physical memory is not exported at all, not even to root. That is not going to change. Johannes Krottmayer wrote: > On 10.01.20 at 17:26, Theo de Raadt wrote: > > We won't help you because we oppose the lack of a security barrier > > in such designs. > > Detailed explanation (for us stupi

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread Johannes Krottmayer
On 10.01.20 at 17:26, Theo de Raadt wrote: > We won't help you because we oppose the lack of a security barrier > in such designs. Detailed explanation (for us stupid users), please. The same non-response answer. Same with my (simple) User-Space GPIO driver. Please don't get wrong, but I had th

Re: Userland PCI drivers possible in OpenBSD?

2020-01-10 Thread Theo de Raadt
We won't help you because we oppose the lack of a security barrier in such designs. Joseph Mayer wrote: > Maybe this topic is better suited for tech@, you tell: > > Is there some way I can implement PCI drivers in userland in OpenBSD? > > On a quick Internet search, see some discussion for Li

Re: Userland PCI drivers possible in OpenBSD?

2020-01-09 Thread Mike Larkin
On Fri, Jan 10, 2020 at 03:58:16AM +, Joseph Mayer wrote: > Maybe this topic is better suited for tech@, you tell: > > Is there some way I can implement PCI drivers in userland in OpenBSD? > no > On a quick Internet search, see some discussion for Linux and NetBSD > e.g. [1] however nothing

Userland PCI drivers possible in OpenBSD?

2020-01-09 Thread Joseph Mayer
Maybe this topic is better suited for tech@, you tell: Is there some way I can implement PCI drivers in userland in OpenBSD? On a quick Internet search, see some discussion for Linux and NetBSD e.g. [1] however nothing in OpenBSD. I may be interested in operating some PCI device manually from my