From owner-freebsd-emulation@FreeBSD.ORG  Wed Jan 12 10:09:21 2011
Return-Path: <owner-freebsd-emulation@FreeBSD.ORG>
Delivered-To: emulation@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8B442106566B;
	Wed, 12 Jan 2011 10:09:21 +0000 (UTC)
	(envelope-from alexander@leidinger.net)
Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de
	[217.11.53.44])
	by mx1.freebsd.org (Postfix) with ESMTP id 385538FC17;
	Wed, 12 Jan 2011 10:09:20 +0000 (UTC)
Received: from outgoing.leidinger.net (p57B3B3B3.dip.t-dialin.net
	[87.179.179.179])
	by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id B7005844012;
	Wed, 12 Jan 2011 11:09:16 +0100 (CET)
Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102])
	by outgoing.leidinger.net (Postfix) with ESMTP id C77A62970;
	Wed, 12 Jan 2011 11:09:11 +0100 (CET)
Received: (from www@localhost)
	by webmail.leidinger.net (8.14.4/8.13.8/Submit) id p0CA8elx086681;
	Wed, 12 Jan 2011 11:08:40 +0100 (CET)
	(envelope-from Alexander@Leidinger.net)
Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by
	webmail.leidinger.net (Horde Framework) with HTTP; Wed, 12 Jan 2011
	11:08:40 +0100
Message-ID: <20110112110840.157527pfroeph9xc@webmail.leidinger.net>
Date: Wed, 12 Jan 2011 11:08:40 +0100
From: Alexander Leidinger <Alexander@Leidinger.net>
To: Juergen Lock <nox@jelal.kn-bremen.de>
References: <20091204223126.00005392@unknown>
	<201001081650.14189.hselasky@c2i.net>
	<20100108114130.1cfe88c5@shibato.opal.com>
	<201101110947.46399.hselasky@c2i.net>
	<20110111092609.7bf82016@shibato.opal.com>
	<20110111183937.GA36761@triton8.kn-bremen.de>
	<AANLkTi=Ek4-C5LJtoxo7bTHr8Zn=_QBJfJeXE5Ybk2g-@mail.gmail.com>
	<20110111160907.454c74d7@shibato.opal.com>
	<20110111222055.GA44727@triton8.kn-bremen.de>
In-Reply-To: <20110111222055.GA44727@triton8.kn-bremen.de>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8;
 DelSp="Yes";
 format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4)
X-EBL-MailScanner-Information: Please contact the ISP for more information
X-EBL-MailScanner-ID: B7005844012.A6656
X-EBL-MailScanner: Found to be clean
X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN,
	SpamAssassin (not cached, score=1.274, required 6,
	autolearn=disabled, RDNS_NONE 1.27)
X-EBL-MailScanner-SpamScore: s
X-EBL-MailScanner-From: alexander@leidinger.net
X-EBL-MailScanner-Watermark: 1295431757.15079@u/4XfiFb5x2/HaavlGS5ew
X-EBL-Spam-Status: No
Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org,
	Andrew Gallatin <gallatin@gmail.com>
Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now
X-BeenThere: freebsd-emulation@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Development of Emulators of other operating systems
	<freebsd-emulation.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-emulation>, 
	<mailto:freebsd-emulation-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-emulation>
List-Post: <mailto:freebsd-emulation@freebsd.org>
List-Help: <mailto:freebsd-emulation-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-emulation>, 
	<mailto:freebsd-emulation-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2011 10:09:21 -0000

Quoting Juergen Lock <nox@jelal.kn-bremen.de> (from Tue, 11 Jan 2011  
23:20:55 +0100):

>  But anyway if you want to merge this version as it is now you want
> it at least to return errors for the ioctls it doesn't translate,
> or only do that on amd64.
>
>  (Or maybe I'll look at this over the weekend myself but I can't
> promise anything... :)

So if it is just two ioctl's to cover: Andrew, do your applications  
still work  when those ioctl's return ENOSYS or an error (whatever is  
more sensible in this case)? If yes, I would not complain if those  
ioctl's would return ENOSYS (and do some sensible rate limited logging  
explaining the issue) in the linux32 on amd64 case but work on i386  
(in case nobody has the time to make them work correctly in linux32 on  
amd64).

One question still remains, why is the bitswap required? Is it really  
that linux uses a different order than FreeBSD and all the other code  
does it somehow implicitely (and I didn't notice it), or is there  
something else going on? IMO this is an important question to answer  
before a commit.

Bye,
Alexander.

-- 
A diplomat is a man who can convince his
wife she'd look stout in a fur coat.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137