Wine on OpenBSD, Theo de Raadt

Mihai Donțu mihai.dontu at gmail.com
Thu Nov 5 10:52:45 CST 2009


On Thursday 05 November 2009 18:31:52 Yann Droneaud wrote:
> Le jeudi 05 novembre 2009 à 17:01 +0100, Marcus Meissner a écrit :
> > On Thu, Nov 05, 2009 at 02:21:47PM +0100, Yann Droneaud wrote:
> > > Hi,
> > >
> > > In a recent post ( <http://lwn.net/Articles/360312/> ), Theo de Raadt
> > > is criticising Linux page 0 handling.
> > > He argue that Linux allows page 0 mapping only for Wine.
> > > And OpenBSD won't allow page 0 mapping for security reasons (and
> > > performance reasons).
> > >
> > > Since Wine seems to be working on other *BSD and derivative systems,
> > > is this a problem ?
> > >
> > > Could someone comment on this issue. I don't find anything related on
> > > <http://wiki.winehq.org/OpenBSD>
> >
> > Its actually not a real problem for Wine, last years code works without
> > NULL pages.
> 
> It seems many people thinks Wine needs to mmap the page 0 to run common
> application.
> 
> Does Wine 1.0 need it ?
> 
> If not, it's really a myth.
> 

# sysctl vm.mmap_min_addr
vm.mmap_min_addr = 4096

and wine works like a charm.

> > Our DOS emulator requires it, as vm86() mode uses 0 based mapping,
> > so DOS programs won't work afterwards. But otherwise I see no dependency.
> > (Perhaps Win16, but I dont think so.)
> 

I've never been able to run a dos program in Wine, but I've never asked myself 
why because I always had an alternative.

> According to this post from Alexandre Julliard, win16 don't need it.
> 
> http://old.nabble.com/Re%3A-vm86-mode-is-not-supported-p23884662.html
> 
> Perhaps it could be good point if there's a way to disable DOS emulator
> at build time ?
> 

-- 
Mihai Donțu



More information about the wine-devel mailing list