From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 2 11:01:34 2008 Return-Path: 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 8A5901065677 for ; Sun, 2 Mar 2008 11:01:34 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 38D678FC22 for ; Sun, 2 Mar 2008 11:01:33 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 48046675D3A; Sun, 2 Mar 2008 12:01:32 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8EAn8EOpxttF; Sun, 2 Mar 2008 12:01:31 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 38FFF675CEF; Sun, 2 Mar 2008 12:01:31 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m22B1U6w031041; Sun, 2 Mar 2008 12:01:30 +0100 (CET) (envelope-from rdivacky) Date: Sun, 2 Mar 2008 12:01:30 +0100 From: Roman Divacky To: emulation@freebsd.org Message-ID: <20080302110130.GA30563@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: jeff@freebsd.org Subject: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2008 11:01:34 -0000 --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi.. jeff commited his cpu set and I tried to map that to linuxulator version of linux_sched_getaffinity(), the current (untested) code looks like this: /* * Get affinity of a process */ int linux_sched_getaffinity(struct thread *td, struct linux_sched_getaffinity_args *args) { int error; struct cpuset_getaffinity_args cga; if (args->len < sizeof(cpumask_t)) return (EINVAL); cga.level = CPU_LEVEL_WHICH; cga.which = CPU_WHICH_PID; cga.id = args->pid; cga.cpusetsize = sizeof(cpumask_t) * NBBY; cga.mask = (long *) args->user_mask_ptr; if ((error = cpuset_getaffinity(td, &cga)) == 0) td->td_retval[0] = sizeof(cpumask_t); return (error); } can someone comment on this? thnx roman --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHyokKLVEj6D3CBEwRAgzPAJ0YNBsh8oOcURZxirhObID7kr+btwCfd+nJ xR36GH7c758tNK3XdDRWGzs= =FGob -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 2 20:50:36 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F9C71065673 for ; Sun, 2 Mar 2008 20:50:36 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id CD4EC8FC19 for ; Sun, 2 Mar 2008 20:50:35 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 73231296A08; Sun, 2 Mar 2008 21:50:33 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m22Kl2fc063240; Sun, 2 Mar 2008 21:47:02 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m22Kl209063239; Sun, 2 Mar 2008 21:47:02 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 2 Mar 2008 21:47:02 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20080302204702.GA62895@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: qemu 2008-03-02 snapshot FreeBSD 7.0/amd64 guest regression (tcg?) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2008 20:50:36 -0000 Hi! I've prepared a FreeBSD qemu-devel port update, as already mentioned on the freebsd-emulation list, and found the FreeBSD 7.0/amd64 isos now pagefault repeatedly, saying: panic: page fault cpuid = 0 kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x20 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff8046c704 trap number = 12 frame pointer = 0x10:0x0 ... 0xffffffff8046c704 in the 7.0-RELEASE kernel used on the isos is in _thread_lock_flags: (kgdb) disassemble _thread_lock_flags Dump of assembler code for function _thread_lock_flags: 0xffffffff8046c6e0 <_thread_lock_flags+0>: push %r14 0xffffffff8046c6e2 <_thread_lock_flags+2>: mov %rdi,%r14 0xffffffff8046c6e5 <_thread_lock_flags+5>: push %r13 0xffffffff8046c6e7 <_thread_lock_flags+7>: push %r12 0xffffffff8046c6e9 <_thread_lock_flags+9>: push %rbp 0xffffffff8046c6ea <_thread_lock_flags+10>: push %rbx 0xffffffff8046c6eb <_thread_lock_flags+11>: mov %gs:0x0,%r13 0xffffffff8046c6f4 <_thread_lock_flags+20>: xor %r12d,%r12d 0xffffffff8046c6f7 <_thread_lock_flags+23>: callq 0xffffffff8071df80 0xffffffff8046c6fc <_thread_lock_flags+28>: mov (%r14),%rbp 0xffffffff8046c6ff <_thread_lock_flags+31>: mov $0x4,%eax 0xffffffff8046c704 <_thread_lock_flags+36>: lock cmpxchg %r13,0x20(%rbp) 0xffffffff8046c70a <_thread_lock_flags+42>: sete %al 0xffffffff8046c70d <_thread_lock_flags+45>: test %al,%al 0xffffffff8046c70f <_thread_lock_flags+47>: jne 0xffffffff8046c799 <_thread_lock_flags+185> 0xffffffff8046c715 <_thread_lock_flags+53>: mov 0x20(%rbp),%rdx 0xffffffff8046c719 <_thread_lock_flags+57>: cmp %r13,%rdx 0xffffffff8046c71c <_thread_lock_flags+60>: je 0xffffffff8046c7cd <_thread_lock_flags+237> 0xffffffff8046c722 <_thread_lock_flags+66>: callq 0xffffffff8071c4e0 ---Type to continue, or q to quit--- 0xffffffff8046c727 <_thread_lock_flags+71>: jmp 0xffffffff8046c73c <_thread_lock_flags+92> 0xffffffff8046c729 <_thread_lock_flags+73>: data16 ... so this looks like either %rbp is indeed zero or that cmpxchg insn isnt getting correctly translated. If you want to reproduce just boot the 35 MB 7.0-RELEASE-amd64-bootonly.iso in qemu-system-x86_64 (without kqemu); you can find mirrors via http://mirrorlist.freebsd.org/ (search for isos, amd64 architecture, I used 7.0 as you can see.) Oh, if you want to look at the live kernel you can boot the 7.0-RELEASE-amd64-livefs.iso in 0.9.1 with the previously mentioned patch (see http://www.nabble.com/forum/ViewPost.jtp?post=14921171 ), select fixit->cdrom in the menu that comes up after choosing the keyboard layout, and run `kgdb /dist/boot/kernel/kernel /dev/mem'. Thanx, Juergen From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 2 21:15:30 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA0D71065673; Sun, 2 Mar 2008 21:15:30 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 4BA948FC15; Sun, 2 Mar 2008 21:15:30 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 67BFC296A0A; Sun, 2 Mar 2008 21:50:33 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m22KLLQF062754; Sun, 2 Mar 2008 21:21:21 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m22KLL8S062753; Sun, 2 Mar 2008 21:21:21 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 2 Mar 2008 21:21:20 +0100 To: freebsd-emulation@FreeBSD.org, freebsd-ports@FreeBSD.org Message-ID: <20080302202120.GA62260@saturn.kn-bremen.de> Mail-Followup-To: freebsd-emulation@FreeBSD.org, freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: please test qemu-devel port update (2008-03-02 snapshot) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2008 21:15:30 -0000 Hi! Again, interesting things are happening in the qemu development tree, among others the ncurses patch has been committed (allowing to see vga text output without sdl by passing -curses), e1000 emulation i.e. an emulated em(4) that should be even faster than the e100 since it also features TSO is now in (-net nic,model=e1000), and qemu is now moving to a new codegenerator called tcg that's supposed to eliminate the gcc3 dependency once everything has been converted to it. Unfortunately, tcg also seems to cause the first regression I've found, qemu-system-x86_64 now makes the 7.0 amd64 isos pagefault in _thread_lock_flags, even tho I've added the cpu-exec.c patch that fixes the hang of the same guests with qemu 0.9.1 (see http://lists.gnu.org/archive/html/qemu-devel/2008-02/msg00334.html ), I'll post a little more about that in a seperate post to the qemu list. (will crosspost to -emulation.) Anyway the update is here (also queued on tb3): http://people.freebsd.org/~nox/qemu/qemu-devel-20080302.patch enjoy, Juergen From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 00:02:10 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DF541065680 for ; Mon, 3 Mar 2008 00:02:10 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 0372A8FC13 for ; Mon, 3 Mar 2008 00:02:09 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 91569294CC8; Mon, 3 Mar 2008 01:02:08 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m2301Ynb068620; Mon, 3 Mar 2008 01:01:34 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m2301YEo068619; Mon, 3 Mar 2008 01:01:34 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Mon, 3 Mar 2008 01:01:34 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20080303000134.GA68444@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org References: <20080302204702.GA62895@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080302204702.GA62895@saturn.kn-bremen.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: Re: qemu 2008-03-02 snapshot FreeBSD 7.0/amd64 guest regression (tcg?) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 00:02:10 -0000 On Sun, Mar 02, 2008 at 09:47:02PM +0100, Juergen Lock wrote: > Hi! > > I've prepared a FreeBSD qemu-devel port update, as already mentioned > on the freebsd-emulation list, and found the FreeBSD 7.0/amd64 isos > now pagefault repeatedly, saying: > > panic: page fault > cpuid = 0 > kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x20 > fault code = supervisor read data, page not present > instruction pointer = 0x8:0xffffffff8046c704 > trap number = 12 > frame pointer = 0x10:0x0 > ... > > 0xffffffff8046c704 in the 7.0-RELEASE kernel used on the isos is > in _thread_lock_flags: > > (kgdb) disassemble _thread_lock_flags > Dump of assembler code for function _thread_lock_flags: > 0xffffffff8046c6e0 <_thread_lock_flags+0>: push %r14 > 0xffffffff8046c6e2 <_thread_lock_flags+2>: mov %rdi,%r14 > 0xffffffff8046c6e5 <_thread_lock_flags+5>: push %r13 > 0xffffffff8046c6e7 <_thread_lock_flags+7>: push %r12 > 0xffffffff8046c6e9 <_thread_lock_flags+9>: push %rbp > 0xffffffff8046c6ea <_thread_lock_flags+10>: push %rbx > 0xffffffff8046c6eb <_thread_lock_flags+11>: mov %gs:0x0,%r13 > 0xffffffff8046c6f4 <_thread_lock_flags+20>: xor %r12d,%r12d > 0xffffffff8046c6f7 <_thread_lock_flags+23>: callq 0xffffffff8071df80 > 0xffffffff8046c6fc <_thread_lock_flags+28>: mov (%r14),%rbp > 0xffffffff8046c6ff <_thread_lock_flags+31>: mov $0x4,%eax > 0xffffffff8046c704 <_thread_lock_flags+36>: lock cmpxchg %r13,0x20(%rbp) > 0xffffffff8046c70a <_thread_lock_flags+42>: sete %al > 0xffffffff8046c70d <_thread_lock_flags+45>: test %al,%al > 0xffffffff8046c70f <_thread_lock_flags+47>: jne 0xffffffff8046c799 <_thread_lock_flags+185> > 0xffffffff8046c715 <_thread_lock_flags+53>: mov 0x20(%rbp),%rdx > 0xffffffff8046c719 <_thread_lock_flags+57>: cmp %r13,%rdx > 0xffffffff8046c71c <_thread_lock_flags+60>: je 0xffffffff8046c7cd <_thread_lock_flags+237> > 0xffffffff8046c722 <_thread_lock_flags+66>: callq 0xffffffff8071c4e0 > ---Type to continue, or q to quit--- > 0xffffffff8046c727 <_thread_lock_flags+71>: jmp 0xffffffff8046c73c <_thread_lock_flags+92> > 0xffffffff8046c729 <_thread_lock_flags+73>: data16 > ... > > so this looks like either %rbp is indeed zero or that cmpxchg insn isnt > getting correctly translated. If you want to reproduce just boot the 35 MB > 7.0-RELEASE-amd64-bootonly.iso in qemu-system-x86_64 (without kqemu); you > can find mirrors via > http://mirrorlist.freebsd.org/ > (search for isos, amd64 architecture, I used 7.0 as you can see.) > > Oh, if you want to look at the live kernel you can boot the > 7.0-RELEASE-amd64-livefs.iso in 0.9.1 with the previously mentioned > patch (see > http://www.nabble.com/forum/ViewPost.jtp?post=14921171 > ), select fixit->cdrom in the menu that comes up after choosing > the keyboard layout, and run `kgdb /dist/boot/kernel/kernel /dev/mem'. Update: looks like the bug is i386 host only, at least I got a report of amd64 host working. (will try to confirm later...) Juergen From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 10:54:31 2008 Return-Path: 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 3B732106566C; Mon, 3 Mar 2008 10:54:31 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id CE39E8FC21; Mon, 3 Mar 2008 10:54:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55014.dip.t-dialin.net [84.165.80.20]) by redbull.bpaserver.net (Postfix) with ESMTP id 349FE2E1FE; Mon, 3 Mar 2008 11:54:27 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 9C3C57DCDC; Mon, 3 Mar 2008 11:54:21 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m23AsLAM054658; Mon, 3 Mar 2008 11:54:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 03 Mar 2008 11:54:20 +0100 Message-ID: <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 03 Mar 2008 11:54:20 +0100 From: Alexander Leidinger To: Roman Divacky References: <20080217162938.GA82845@freebsd.org> In-Reply-To: <20080217162938.GA82845@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-12.904, required 6, BAYES_00 -15.00, J_CHICKENPOX_33 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 10:54:31 -0000 Quoting Roman Divacky (from Sun, 17 Feb 2008 =20 17:29:38 +0100): > hi > > www.vlakno.cz/~rdivacky/linux_epoll.patch > > patch that implements epoll() in linuxulator. its fairly trivial > so I'd love to get this reviewed/commited by someone. I don't comment about the correctness of the use of kevent or the =20 behavior of epoll, I only have time to do a high-level review ATM. Short review: fix the XXX, some more docs Long review: In general: I would prefer to lift the quality to a higher level. What about =20 adding comments before each functions describing the behavior it =20 should have (not a description of what the code does, I'm talking =20 about things you would like to read in an API documentation, e.g. like =20 in the function mixer_get_recroute in the file =20 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/sound/pcm/mixer.c?rev=3D1.= 55;content-type=3Dtext%2Fx-cvsweb-markup). epoll_create: You write that linux ignores the size as well. I think it would be =20 better to come up with some size checks. If it is technically not =20 possible to create better size checks, then convert the XXX into a =20 regular comment. Are there some missing parentheses around the return =20 value (I can't check style(9) ATM)? No std debug messages for this? epoll_to_kevent: Please check the part which you are not sure about. If you have =20 multiple possibilities, please write a comment regarding the =20 possibilities, and why you have chosen the way it is coded. There's no =20 code which detects new stuff and does a kprintf. It would be good if =20 it prints out a warning that there's something which is not handled by =20 it. kevent_to_epoll: You really asked to review a patch which says "XXX: error handling"? I think the break statements need some style(9). Shouldn't a function =20 which can produce errors have a return type which allows to tell the =20 caller about errors? What about a default case with a kprintf telling =20 the user that there's something new which is not handled? This would =20 make problems reports much better in case there are some changes in =20 the future ("insurance for the future"). kev_copyout: It uses kevent_to_epoll, and as such it should return an error and not =20 do the copyout, if there was an error. kev_copyin: You use memcpy, and not copyin. This is confusing, as the name suggest =20 you are doing a copyin. Something needs to be changed there. epoll_ctl: Again, the XXX: I don't know if you can add+del, but having the MOD =20 part return EINVAL every time is not ok. epoll_wait: Hardcoded constants for the time and no docs of why you use those =20 numbers. The comment about the wrong type-cast is also not =20 encouraging. When I read it the first questions I have are: Why the =20 wrong typecast? What's the right typecast and why can't you use it? =20 Again, a XXX comment. This needs to be resolved (I assume that a =20 translation would be the way to go, with a kprintf for things we don't =20 know how to translate, so that in case of changes in linux, we/users =20 can see it). > it's basically a thin translation layer above kqueue. I tested > this using http://www.vlakno.cz/~rdivacky/epoll.c i is not initialized. Compilers may opt to initialize them to 0. You don't test all possibilities. Have you checked if more recent LTP =20 tests contain epoll tests? Bye, Alexander. --=20 The lunatic, the lover, and the poet, Are of imagination all compact... =09=09-- William Shakespeare, "A Midsummer Night's Dream" http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 11:07:05 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE35710656D6 for ; Mon, 3 Mar 2008 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A68EA8FC15 for ; Mon, 3 Mar 2008 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m23B755V022007 for ; Mon, 3 Mar 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m23B74wx022003 for freebsd-emulation@FreeBSD.org; Mon, 3 Mar 2008 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Mar 2008 11:07:05 GMT Message-Id: <200803031107.m23B74wx022003@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-emulation@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-emulation@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 11:07:06 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/21463 emulation [linux] Linux compatability mode should not allow setu o kern/97326 emulation [linux] file descriptor leakage in linux emulation o kern/102956 emulation [linux] [patch] Add partial support for SO_PEERCRED in o kern/117010 emulation [linuxolator] linux_getdents() get something like buff o ports/117350 emulation compile error in emulators/vmware3 5 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/11165 emulation [ibcs2] IBCS2 doesn't work correctly with PID_MAX 9999 o kern/29698 emulation [linux] [patch] linux ipcs doesn'work o kern/39201 emulation [linux] [patch] ptrace(2) and rfork(RFLINUXTHPN) confu o kern/41543 emulation [patch] [request] easier wine/w23 support o kern/55835 emulation [linux] [patch] Linux IPC emulation missing SETALL sys a kern/72920 emulation [linux]: path "prefixing" is not done on unix domain s f kern/73777 emulation [linux] [patch] linux emulation: root dir special hand o kern/91293 emulation [svr4] [patch] *Experimental* Update to the SVR4 emula o ports/91318 emulation [fix] graphics/linux_dri: works on amd64 too 9 problems total. From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 12:21:37 2008 Return-Path: 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 B1D6C106566C; Mon, 3 Mar 2008 12:21:37 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 84DEE8FC20; Mon, 3 Mar 2008 12:21:37 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m23CLYDJ024768; Mon, 3 Mar 2008 07:21:36 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Mon, 3 Mar 2008 02:23:49 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Roman Divacky In-Reply-To: <20080302110130.GA30563@freebsd.org> Message-ID: <20080303022202.S920@desktop> References: <20080302110130.GA30563@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 12:21:37 -0000 On Sun, 2 Mar 2008, Roman Divacky wrote: > hi.. > > jeff commited his cpu set and I tried to map that to linuxulator > version of linux_sched_getaffinity(), the current (untested) code > looks like this: > > /* > * Get affinity of a process > */ > int > linux_sched_getaffinity(struct thread *td, > struct linux_sched_getaffinity_args *args) > { > int error; > struct cpuset_getaffinity_args cga; > > if (args->len < sizeof(cpumask_t)) > return (EINVAL); Len here is in number of bits I believe as it is for our cpusetsize. > > cga.level = CPU_LEVEL_WHICH; > cga.which = CPU_WHICH_PID; > cga.id = args->pid; > cga.cpusetsize = sizeof(cpumask_t) * NBBY; > cga.mask = (long *) args->user_mask_ptr; Our call will accept larger values and zero fill any bits we don't use. It should be safe to pass the original len. > > if ((error = cpuset_getaffinity(td, &cga)) == 0) > td->td_retval[0] = sizeof(cpumask_t); > > return (error); > } Thanks, Jeff > > > can someone comment on this? thnx > > roman > From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 14:42:11 2008 Return-Path: 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 20CBF1065670; Mon, 3 Mar 2008 14:42:11 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id D8A2A8FC12; Mon, 3 Mar 2008 14:42:10 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 62AA4675E6B; Mon, 3 Mar 2008 15:42:08 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JG0M6EtvTp-U; Mon, 3 Mar 2008 15:41:54 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E4319675E76; Mon, 3 Mar 2008 15:41:53 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m23Efrvv048748; Mon, 3 Mar 2008 15:41:53 +0100 (CET) (envelope-from rdivacky) Date: Mon, 3 Mar 2008 15:41:53 +0100 From: Roman Divacky To: Jeff Roberson Message-ID: <20080303144152.GA47887@freebsd.org> References: <20080302110130.GA30563@freebsd.org> <20080303022202.S920@desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080303022202.S920@desktop> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 14:42:11 -0000 On Mon, Mar 03, 2008 at 02:23:49AM -1000, Jeff Roberson wrote: > > On Sun, 2 Mar 2008, Roman Divacky wrote: > > >hi.. > > > >jeff commited his cpu set and I tried to map that to linuxulator > >version of linux_sched_getaffinity(), the current (untested) code > >looks like this: > > > >/* > >* Get affinity of a process > >*/ > >int > >linux_sched_getaffinity(struct thread *td, > > struct linux_sched_getaffinity_args *args) > >{ > > int error; > > struct cpuset_getaffinity_args cga; > > > > if (args->len < sizeof(cpumask_t)) > > return (EINVAL); > > Len here is in number of bits I believe as it is for our cpusetsize. no.. its specified in bytes > > > > cga.level = CPU_LEVEL_WHICH; > > cga.which = CPU_WHICH_PID; > > cga.id = args->pid; > > cga.cpusetsize = sizeof(cpumask_t) * NBBY; > > cga.mask = (long *) args->user_mask_ptr; > > Our call will accept larger values and zero fill any bits we don't use. > It should be safe to pass the original len. ok.. will do it like that thnx for the comments, can anyone test the stuff? (I have access to UP only ATM) roman From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 15:06:24 2008 Return-Path: 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 E75D51065678 for ; Mon, 3 Mar 2008 15:06:24 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 3DAB28FC16 for ; Mon, 3 Mar 2008 15:06:24 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 07103675E6D; Mon, 3 Mar 2008 16:06:23 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EI8YVfXCOiWZ; Mon, 3 Mar 2008 16:06:07 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 598A7675E6B; Mon, 3 Mar 2008 16:06:07 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m23F67aT051921; Mon, 3 Mar 2008 16:06:07 +0100 (CET) (envelope-from rdivacky) Date: Mon, 3 Mar 2008 16:06:07 +0100 From: Roman Divacky To: Alexander Leidinger Message-ID: <20080303150607.GB47887@freebsd.org> References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 15:06:25 -0000 On Mon, Mar 03, 2008 at 11:54:20AM +0100, Alexander Leidinger wrote: > Quoting Roman Divacky (from Sun, 17 Feb 2008 > 17:29:38 +0100): > > >hi > > > >www.vlakno.cz/~rdivacky/linux_epoll.patch > > > >patch that implements epoll() in linuxulator. its fairly trivial > >so I'd love to get this reviewed/commited by someone. > > I don't comment about the correctness of the use of kevent or the > behavior of epoll, I only have time to do a high-level review ATM. > > Short review: fix the XXX, some more docs > > Long review: > > In general: > I would prefer to lift the quality to a higher level. What about > adding comments before each functions describing the behavior it > should have (not a description of what the code does, I'm talking > about things you would like to read in an API documentation, e.g. like > in the function mixer_get_recroute in the file > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/sound/pcm/mixer.c?rev=1.55;content-type=text%2Fx-cvsweb-markup). makes sense... I'll try to come up with something > > epoll_create: > You write that linux ignores the size as well. I think it would be > better to come up with some size checks. If it is technically not > possible to create better size checks, then convert the XXX into a > regular comment. Are there some missing parentheses around the return > value (I can't check style(9) ATM)? No std debug messages for this? there is nothing to check, the size argument is ignored and "kqueue" syscall ignores its parameter too... I'll change the comment and improve the style > epoll_to_kevent: > Please check the part which you are not sure about. If you have > multiple possibilities, please write a comment regarding the > possibilities, and why you have chosen the way it is coded. There's no > code which detects new stuff and does a kprintf. It would be good if > it prints out a warning that there's something which is not handled by > it. I am not sure if its semantically correct, it seems to work for my testing program. I'll remove the comment. I'll add the printf about not handle events > kevent_to_epoll: > You really asked to review a patch which says "XXX: error handling"? yes.. that should be handled. when I look at it now it seems that this can happen during event registration. I probably had some idea about it but forgot :) > I think the break statements need some style(9). Shouldn't a function > which can produce errors have a return type which allows to tell the > caller about errors? What about a default case with a kprintf telling > the user that there's something new which is not handled? This would > make problems reports much better in case there are some changes in > the future ("insurance for the future"). I'll take a look at it once more, the problem is that this funstion is used for two purposes.. > > kev_copyout: > It uses kevent_to_epoll, and as such it should return an error and not > do the copyout, if there was an error. I am not absolutely sure what should happen when there is a problem during registration (which is the only place the EV_ERROR is triggered). > kev_copyin: > You use memcpy, and not copyin. This is confusing, as the name suggest > you are doing a copyin. Something needs to be changed there. the function is named "...copyin" because this is kqueue nomenclature but my function wants to copy from kernel space to kernel space. so I guess its ok. > epoll_ctl: > Again, the XXX: I don't know if you can add+del, but having the MOD > part return EINVAL every time is not ok. why not? I dont think this is widely or at all so EINVAL looks fine for me (now) > epoll_wait: > Hardcoded constants for the time and no docs of why you use those > numbers. The comment about the wrong type-cast is also not > encouraging. When I read it the first questions I have are: Why the > wrong typecast? What's the right typecast and why can't you use it? > Again, a XXX comment. This needs to be resolved (I assume that a > translation would be the way to go, with a kprintf for things we don't > know how to translate, so that in case of changes in linux, we/users > can see it). the constants are simple time conversions. its quite obvious. the type thing cannot be solved because epoll() passes in something entirely different to kqueue but our copyin() function knows about it so its not a problem in reality. > >it's basically a thin translation layer above kqueue. I tested > >this using http://www.vlakno.cz/~rdivacky/epoll.c > > i is not initialized. Compilers may opt to initialize them to 0. > > You don't test all possibilities. Have you checked if more recent LTP > tests contain epoll tests? the LTP test requires some library which I was not able to get. I dont remember the details but I was unable to run the tests. thnx for the review I'll fix things and post updated version in a few days roman From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 16:41:23 2008 Return-Path: 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 9BC3F106566B; Mon, 3 Mar 2008 16:41:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 27D778FC15; Mon, 3 Mar 2008 16:41:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55014.dip.t-dialin.net [84.165.80.20]) by redbull.bpaserver.net (Postfix) with ESMTP id F03852E26F; Mon, 3 Mar 2008 17:41:09 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8FF0697835; Mon, 3 Mar 2008 17:41:02 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m23Gf1Ls012306; Mon, 3 Mar 2008 17:41:01 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 03 Mar 2008 17:41:01 +0100 Message-ID: <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 03 Mar 2008 17:41:01 +0100 From: Alexander Leidinger To: Roman Divacky References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> <20080303150607.GB47887@freebsd.org> In-Reply-To: <20080303150607.GB47887@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-13.25, required 6, BAYES_00 -15.00, J_CHICKENPOX_33 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10, SMILEY -0.50, TW_CP 0.08, TW_HN 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 16:41:23 -0000 Quoting Roman Divacky (from Mon, 3 Mar 2008 =20 16:06:07 +0100): > On Mon, Mar 03, 2008 at 11:54:20AM +0100, Alexander Leidinger wrote: >> epoll_to_kevent: >> Please check the part which you are not sure about. If you have >> multiple possibilities, please write a comment regarding the >> possibilities, and why you have chosen the way it is coded. There's no >> code which detects new stuff and does a kprintf. It would be good if >> it prints out a warning that there's something which is not handled by >> it. > > I am not sure if its semantically correct, it seems to work for my testing > program. I'll remove the comment. I'm not sure your testing program covers all cases. So just removing =20 the comment to make me happy is not the right thing to do. :) > I'll add the printf about not handle events > > >> kevent_to_epoll: >> You really asked to review a patch which says "XXX: error handling"? > > yes.. that should be handled. when I look at it now it seems that this > can happen during event registration. I probably had some idea about > it but forgot :) > >> I think the break statements need some style(9). Shouldn't a function >> which can produce errors have a return type which allows to tell the >> caller about errors? What about a default case with a kprintf telling >> the user that there's something new which is not handled? This would >> make problems reports much better in case there are some changes in >> the future ("insurance for the future"). > > I'll take a look at it once more, the problem is that this funstion > is used for two purposes.. Try to come up with something sensible. It can produce errors and =20 those should be handled. >> kev_copyout: >> It uses kevent_to_epoll, and as such it should return an error and not >> do the copyout, if there was an error. > > I am not absolutely sure what should happen when there is a problem > during registration (which is the only place the EV_ERROR is triggered). > >> kev_copyin: >> You use memcpy, and not copyin. This is confusing, as the name suggest >> you are doing a copyin. Something needs to be changed there. > > the function is named "...copyin" because this is kqueue nomenclature > but my function wants to copy from kernel space to kernel space. so I > guess its ok. It doesn't matter much IMHO, that kqueue calls this copyin. In your =20 code the memcpy is what happening there and I prefer kev_copy (or =20 kev_memcpy or similar) instead of kev_copyin. >> epoll_ctl: >> Again, the XXX: I don't know if you can add+del, but having the MOD >> part return EINVAL every time is not ok. > > why not? I dont think this is widely or at all so EINVAL looks fine > for me (now) What I meant was: linux supports the MOD so we should support it too. =20 You already thought about it (ADD+DEL), so think a little bit more and =20 finish it (it doesn't look like it is a lot of code to write for =20 this). And as a second thought: the action to do may depend upon the =20 modification requested (when it is in fact a null op, we should maybe =20 do just nothing)... >> epoll_wait: >> Hardcoded constants for the time and no docs of why you use those >> numbers. The comment about the wrong type-cast is also not >> encouraging. When I read it the first questions I have are: Why the >> wrong typecast? What's the right typecast and why can't you use it? >> Again, a XXX comment. This needs to be resolved (I assume that a >> translation would be the way to go, with a kprintf for things we don't >> know how to translate, so that in case of changes in linux, we/users >> can see it). > > the constants are simple time conversions. its quite obvious. the type Add a comment then. It may be obvious for some, but students browsing =20 over the code may not think it's obvious. When a litte comment can =20 explain the high-level thing several lines of code do, adding the =20 little comment is a good thing to do. It helps understanding foreign =20 code. > thing cannot be solved because epoll() passes in something entirely differ= ent > to kqueue but our copyin() function knows about it so its not a problem > in reality. Write a comment about it. Something like "epoll passes in XXX, but we =20 pretend it is YYY, it is handled at/in/whatever ZZZ". >> >it's basically a thin translation layer above kqueue. I tested >> >this using http://www.vlakno.cz/~rdivacky/epoll.c >> >> i is not initialized. Compilers may opt to initialize them to 0. >> >> You don't test all possibilities. Have you checked if more recent LTP >> tests contain epoll tests? > > the LTP test requires some library which I was not able to get. I dont > remember the details but I was unable to run the tests. Oh... with fc4 or f7? What's the lib? Maybe we (bsam and/or me) can a =20 find it and add it as a port. > thnx for the review I'll fix things and post updated version in a few days Many thanks for working at this! Bye, Alexander. --=20 In every non-trivial program there is at least one bug. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 17:27:16 2008 Return-Path: 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 05C001065672 for ; Mon, 3 Mar 2008 17:27:16 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C05138FC21 for ; Mon, 3 Mar 2008 17:27:15 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id F41B4675E94; Mon, 3 Mar 2008 18:27:13 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6DwbFt3roDBU; Mon, 3 Mar 2008 18:27:00 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 30195675E90; Mon, 3 Mar 2008 18:27:00 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m23HQxea066081; Mon, 3 Mar 2008 18:26:59 +0100 (CET) (envelope-from rdivacky) Date: Mon, 3 Mar 2008 18:26:59 +0100 From: Roman Divacky To: Alexander Leidinger Message-ID: <20080303172659.GA65716@freebsd.org> References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> <20080303150607.GB47887@freebsd.org> <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 17:27:16 -0000 > >I am not sure if its semantically correct, it seems to work for my testing > >program. I'll remove the comment. > > I'm not sure your testing program covers all cases. So just removing > the comment to make me happy is not the right thing to do. :) I tested this flag and it did the same thing on linux and on linuxulator :) > > What I meant was: linux supports the MOD so we should support it too. > You already thought about it (ADD+DEL), so think a little bit more and > finish it (it doesn't look like it is a lot of code to write for > this). And as a second thought: the action to do may depend upon the > modification requested (when it is in fact a null op, we should maybe > do just nothing)... things can always be added later. I'd prefer to commit solution for 95% of the problems now instead of solution for 100% in 2012 > Oh... with fc4 or f7? What's the lib? Maybe we (bsam and/or me) can a > find it and add it as a port. check ltp-full-20061121/testcases/kernel/syscalls/epoll/README.1ST it needs some couroutine library etc. > >thnx for the review I'll fix things and post updated version in a few days > > Many thanks for working at this! sure.... happy to be useful ;) roman From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 17:45:21 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDD211065672 for ; Mon, 3 Mar 2008 17:45:21 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from smtp.cs.ubc.ca (smtp.cs.ubc.ca [142.103.6.52]) by mx1.freebsd.org (Postfix) with ESMTP id E46728FC12 for ; Mon, 3 Mar 2008 17:45:21 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from cascade.cs.ubc.ca (cascade.cs.ubc.ca [142.103.7.7]) by smtp.cs.ubc.ca (8.13.7/8.13.6) with ESMTP id m23HGKhP019974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Mar 2008 09:16:22 -0800 Date: Mon, 3 Mar 2008 09:16:20 -0800 (PST) From: fchang@cs.ubc.ca To: freebsd-emulation@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: patch for /usr/ports/emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 17:45:22 -0000 Hi all: I finally got /usr/ports/emulator/vmware3 working on FreeBSD 7.0 i386. There were 3 changes needed: 1) The avail_end kernel variable no longer exists; I googled and was able to use Kip Macy's suggested replacement code http://lists.freebsd.org/pipermail/freebsd-current/2007-January/068377.html 2) One of the assembly routine cannot compile, but fortunately that routine is unused, so I just commented it out using an "#if 0" block 3) One file uses the old FILEDESC_LOCK and FILEDESC_UNLOCK. Based on suggestion I found on mailing lists, I believe it is equivalent to the new FILEDESC_SLOCK and FILEDESC_SUNLOCK. With the 3 changes, I was able to run vmware3 and boot up Windows XP in it. It appears stable on my machine. Here is the patch: --- work/vmware-distrib/vmmon-only/freebsd/driver.c.old 2008-03-03 17:03:25.000000000 +0000 +++ work/vmware-distrib/vmmon-only/freebsd/driver.c 2008-03-03 17:04:13.000000000 +0000 @@ -397,12 +397,12 @@ if ((error = falloc(td, &fp, &fd)) != 0) return error; - FILEDESC_LOCK(p->p_fd); + FILEDESC_SLOCK(p->p_fd); fp->f_data = data; fp->f_flag = flags & FMASK; fp->f_ops = &vmmon_fileops; fp->f_type = DTYPE_SOCKET; - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_SUNLOCK(p->p_fd); #if __FreeBSD_version >= 501111 /* falloc now returns TWO references to the file, not one. */ @@ -1309,6 +1309,19 @@ return FALSE; } +static vm_paddr_t +get_avail_end(void) +{ + vm_paddr_t avail_end; + int i; + avail_end = phys_avail[1]; + for (i = 0; phys_avail[i + 1]; i += 2) { + if (phys_avail[i + 1] > avail_end) + avail_end = phys_avail[i + 1]; + } + return avail_end; +} + /* * Allocate and lock numPages of memory physically continguous addresses * below 4GB. @@ -1341,6 +1354,7 @@ VMDEBUG("vmmon_alloc_low_pages: malloc MemRange failed\n"); return ENOMEM; } + vm_paddr_t avail_end = get_avail_end(); if (avail_end > ISA_DMA_BOUNCE_THRESHOLD) high = trunc_page(ISA_DMA_BOUNCE_THRESHOLD); else --- work/vmware-distrib/vmmon-only/include/vm_asm.h.old 2008-03-03 17:03:22.000000000 +0000 +++ work/vmware-distrib/vmmon-only/include/vm_asm.h 2008-03-03 17:07:21.000000000 +0000 @@ -1020,6 +1020,7 @@ *----------------------------------------------------------------------------- */ +#if 0 static INLINE void Div643264(uint64 dividend, uint32 divisor, @@ -1047,6 +1048,7 @@ *quotient = (uint64)hQuotient << 32 | lQuotient; } #endif +#endif #endif /* VM_ASM_H */ From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 18:19:35 2008 Return-Path: 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 B376E106566B; Mon, 3 Mar 2008 18:19:35 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 7D5638FC1C; Mon, 3 Mar 2008 18:19:35 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1JWFG8-0008ix-FW; Mon, 03 Mar 2008 21:19:32 +0300 To: Roman Divacky References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> <20080303150607.GB47887@freebsd.org> <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> <20080303172659.GA65716@freebsd.org> From: Boris Samorodov Date: Mon, 03 Mar 2008 21:17:41 +0300 In-Reply-To: <20080303172659.GA65716@freebsd.org> (Roman Divacky's message of "Mon\, 3 Mar 2008 18\:26\:59 +0100") Message-ID: <53631274@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: emulation@freebsd.org, Alexander Leidinger Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 18:19:35 -0000 On Mon, 3 Mar 2008 18:26:59 +0100 Roman Divacky wrote: > > Oh... with fc4 or f7? What's the lib? Maybe we (bsam and/or me) can a > > find it and add it as a port. > > check ltp-full-20061121/testcases/kernel/syscalls/epoll/README.1ST > it needs some couroutine library etc. I think that you misunderstood that README a little. The case is when the file epoll.h is absent at the system. But when it presents (for test-building we use a gentoo distro which has the file at $gentoo/usr/include/sys/epoll.h) the test binary should be built by default (from the corresponding Makefile): ----- LIBC_HAS_EPOLL := $(shell echo '\#include ' | $(CC) -E - &> /dev/null && echo yes) ifeq ($(LIBC_HAS_EPOLL),yes) CFLAGS += -DLTP_EPOLL_USE_SYS_LIBC else CFLAGS += -I. -DLTP_EPOLL_USE_LIB LDLIBS += -lepoll endif ----- I read this code like "if there is a system epoll, then use it, else use the lib which should be downloaded". WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 18:44:51 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 891FD1065679 for ; Mon, 3 Mar 2008 18:44:51 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 4EF128FC2A for ; Mon, 3 Mar 2008 18:44:51 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 2049C675EAA; Mon, 3 Mar 2008 19:44:50 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QDK2xDwzPnBa; Mon, 3 Mar 2008 19:44:37 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 35143675EA5; Mon, 3 Mar 2008 19:44:37 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m23IiZnj073633; Mon, 3 Mar 2008 19:44:35 +0100 (CET) (envelope-from rdivacky) Date: Mon, 3 Mar 2008 19:44:35 +0100 From: Roman Divacky To: fchang@cs.ubc.ca Message-ID: <20080303184435.GA73429@freebsd.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.org Subject: Re: patch for /usr/ports/emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 18:44:51 -0000 On Mon, Mar 03, 2008 at 09:16:20AM -0800, fchang@cs.ubc.ca wrote: > Hi all: > > I finally got /usr/ports/emulator/vmware3 working on FreeBSD 7.0 i386. > There were 3 changes needed: > > 1) The avail_end kernel variable no longer exists; I googled and was > able to use Kip Macy's suggested replacement code > http://lists.freebsd.org/pipermail/freebsd-current/2007-January/068377.html > > 2) One of the assembly routine cannot compile, but fortunately that > routine is unused, so I just commented it out using an "#if 0" block > > 3) One file uses the old FILEDESC_LOCK and FILEDESC_UNLOCK. > Based on suggestion I found on mailing lists, I believe it is > equivalent to the new FILEDESC_SLOCK and FILEDESC_SUNLOCK. > > With the 3 changes, I was able to run vmware3 and boot up Windows XP in it. > It appears stable on my machine. > > Here is the patch: > > > --- work/vmware-distrib/vmmon-only/freebsd/driver.c.old 2008-03-03 > 17:03:25.000000000 +0000 > +++ work/vmware-distrib/vmmon-only/freebsd/driver.c 2008-03-03 > 17:04:13.000000000 +0000 > @@ -397,12 +397,12 @@ > if ((error = falloc(td, &fp, &fd)) != 0) > return error; > > - FILEDESC_LOCK(p->p_fd); > + FILEDESC_SLOCK(p->p_fd); > fp->f_data = data; > fp->f_flag = flags & FMASK; > fp->f_ops = &vmmon_fileops; > fp->f_type = DTYPE_SOCKET; > - FILEDESC_UNLOCK(p->p_fd); > + FILEDESC_SUNLOCK(p->p_fd); I dont think this is correct. you are modifying the filedescriptor while holding "shared lock". unless I am wrong it should be changed to FILEDESC_XLOCK/XUNLOCK thnx for your work! roman From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 19:48:55 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 564DF1065678; Mon, 3 Mar 2008 19:48:55 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from smtp.cs.ubc.ca (smtp.cs.ubc.ca [142.103.6.52]) by mx1.freebsd.org (Postfix) with ESMTP id 49E968FC20; Mon, 3 Mar 2008 19:48:55 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from cascade.cs.ubc.ca (cascade.cs.ubc.ca [142.103.7.7]) by smtp.cs.ubc.ca (8.13.7/8.13.6) with ESMTP id m23Jmo24014604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Mar 2008 11:48:52 -0800 Date: Mon, 3 Mar 2008 11:48:50 -0800 (PST) From: fchang@cs.ubc.ca To: Roman Divacky In-Reply-To: <20080303184435.GA73429@freebsd.org> Message-ID: References: <20080303184435.GA73429@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@FreeBSD.org Subject: Re: patch for /usr/ports/emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 19:48:55 -0000 On Mon, 3 Mar 2008, Roman Divacky wrote: > I dont think this is correct. you are modifying > the filedescriptor while holding "shared lock". > unless I am wrong it should be changed to FILEDESC_XLOCK/XUNLOCK Yes I think you're right. I just recompiled vmware3 with your correction of FILEDESC_XLOCK/FILEDESC_XUNLOCK, and things still work fine. So I'm happy. Here is the revised patch: --- work/vmware-distrib/vmmon-only/freebsd/driver.c.old 2008-03-03 17:03:25.000000000 +0000 +++ work/vmware-distrib/vmmon-only/freebsd/driver.c 2008-03-03 17:04:13.000000000 +0000 @@ -397,12 +397,12 @@ if ((error = falloc(td, &fp, &fd)) != 0) return error; - FILEDESC_LOCK(p->p_fd); + FILEDESC_XLOCK(p->p_fd); fp->f_data = data; fp->f_flag = flags & FMASK; fp->f_ops = &vmmon_fileops; fp->f_type = DTYPE_SOCKET; - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_XUNLOCK(p->p_fd); #if __FreeBSD_version >= 501111 /* falloc now returns TWO references to the file, not one. */ @@ -1309,6 +1309,19 @@ return FALSE; } +static vm_paddr_t +get_avail_end(void) +{ + vm_paddr_t avail_end; + int i; + avail_end = phys_avail[1]; + for (i = 0; phys_avail[i + 1]; i += 2) { + if (phys_avail[i + 1] > avail_end) + avail_end = phys_avail[i + 1]; + } + return avail_end; +} + /* * Allocate and lock numPages of memory physically continguous addresses * below 4GB. @@ -1341,6 +1354,7 @@ VMDEBUG("vmmon_alloc_low_pages: malloc MemRange failed\n"); return ENOMEM; } + vm_paddr_t avail_end = get_avail_end(); if (avail_end > ISA_DMA_BOUNCE_THRESHOLD) high = trunc_page(ISA_DMA_BOUNCE_THRESHOLD); else --- work/vmware-distrib/vmmon-only/include/vm_asm.h.old 2008-03-03 17:03:22.000000000 +0000 +++ work/vmware-distrib/vmmon-only/include/vm_asm.h 2008-03-03 17:07:21.000000000 +0000 @@ -1020,6 +1020,7 @@ *----------------------------------------------------------------------------- */ +#if 0 static INLINE void Div643264(uint64 dividend, uint32 divisor, @@ -1047,6 +1048,7 @@ *quotient = (uint64)hQuotient << 32 | lQuotient; } #endif +#endif #endif /* VM_ASM_H */ From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 20:18:36 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B59D1065674 for ; Mon, 3 Mar 2008 20:18:36 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C1FAB8FC23 for ; Mon, 3 Mar 2008 20:18:35 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A3C03675EC1; Mon, 3 Mar 2008 21:18:34 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oyC7RCbNGKcu; Mon, 3 Mar 2008 21:18:19 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id F37D7675EBF; Mon, 3 Mar 2008 21:18:18 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m23KIG6C079765; Mon, 3 Mar 2008 21:18:16 +0100 (CET) (envelope-from rdivacky) Date: Mon, 3 Mar 2008 21:18:16 +0100 From: Roman Divacky To: Gary Stanley Message-ID: <20080303201816.GA79655@freebsd.org> References: <47C27DF2.8060509@gmail.com> <20080229133158.B6C808FC13@mx1.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080229133158.B6C808FC13@mx1.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@freebsd.org, netchild@freebsd.org, bsam@freebsd.org, sam Subject: Re: info for discussion of syscall getdents() kern/117010 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 20:18:36 -0000 can someone from our ports team comment on this? it would be really nice to get this fixed... and if the solution is so trivial as providing a newer version of glibc I am all for it. On Fri, Feb 29, 2008 at 07:47:31AM -0500, Gary Stanley wrote: > At 03:36 AM 2/25/2008, sam wrote: > >hi all > > > >links to similar problems: > >http://mail-index.netbsd.org/current-users/2005/11/13/0011.html > > > >> bug (+fix) in getdents + readdir > >> o We're not sure what the Linux kernel intended to place in this field, > >> but our experience shows that on "real" file systems (that actually > >> reside on some disk) the offset seems to be a simple (not necessarily > >> continuous) counter: e.g. first entry may have d_off=1, second: > >d_off=2, > >> third: d_off=4096, fourth=d_off=4097 etc. We conjecture this is the > >> serial of the dirent record within the directory (and so, this is > >indeed > >> the "offset", but counted in records out of which some were already > >> removed). > > > > > >> - In such an "overflow" situation, getdents() tries to lseek (the > >> directory-fd) to the end of the last-legal-dirent that getdents() > >> has successfully read. > >> This offset is supposedly held by the local variable `last_offset'. > >> But, since `last_offset' is assigned with `d_off' on each iteration, > >> and since as mentioned above `d_off' usually holds an incorrect value, > >> the lseek is not performed to the correct place. > >> getdents() then returns the number of bytes successfully read. > I > I believe I have fixed this problem. I used a newer glibc version, > extracted it via cpio/rpm2cpio and it fixes it. It seems the version > of glibc that is installed with the fc6 port might have some > regression issues, I don't have a free machine to test my theory out. > I don't track the glibc changes, so it's rather difficult to say. > However, I think this change might have something to do with > (fixing?) the issue: > http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/getdents.c.diff?r1=1.22&r2=1.23&cvsroot=glibc > > [root@swamp /usr/servers]# pkg_info|grep linux > linux_base-fc6-6_5 Base set of packages needed in Linux mode (for > i386/amd64) > > bash-3.1# uname -a > Linux swamp 2.6.16 FreeBSD 7.0-STABLE #2: Fri Feb 29 02:42:04 CST > 2008 i686 i686 i386 GNU/Linux > > bash-3.1# ./hlds_run -game cstrike +ip localhost -port 29999 +exec > server.cfg +map de_dust2 > Auto detecting CPU > Using Pentium II Optimised binary. > Auto-restarting the server on crash > > Console initialized. > scandir failed:/usr/servers/1.6/./valve/SAVE > scandir failed:/usr/servers/1.6/./platform/SAVE > Protocol version 47 > Exe version 1.1.2.5/Stdio (cstrike) > Exe build: 20:02:49 Oct 24 2006 (3651) > STEAM Auth Server > couldn't exec language.cfg > couldn't exec listip.cfg > couldn't exec banned.cfg > Server IP address 127.0.0.1:29999 > scandir failed:/usr/servers/1.6/./valve/SAVE > scandir failed:/usr/servers/1.6/./platform/SAVE > net.cpp (926) : Assertion Failed: 0 == iRet > net.cpp (928) : Assertion Failed: 0 == iRet > > couldn't exec listip.cfg > couldn't exec banned.cfg > Adding master server 68.142.72.250:27010 > Adding master server 72.165.61.190:27010 > Connection to Steam servers successful. > VAC secure mode is activated. > status > hostname: Counter-Strike 1.6 Server > version : 47/1.1.2.5/Stdio 3651 secure > tcp/ip : 127.0.0.1:29999 > map : de_dust2 at: 0 x, 0 y, 0 z > players : 0 active (6 max) > > > Anyway, here are some very brief instructions on how i fixed it: > > "cd /compat/linux && fetch > ftp://rpmfind.net/linux/fedora/development/x86_64/os/Packages/glibc-2.7.90-7.i386.rpm" > Then you do a simple "rpm2cpio glibc-2.7.90-7.i386.rpm | cpio -idvu" > > -Gary > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 21:10:04 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19A081065670 for ; Mon, 3 Mar 2008 21:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 195C18FC12 for ; Mon, 3 Mar 2008 21:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m23LA3kZ075721 for ; Mon, 3 Mar 2008 21:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m23LA3eb075720; Mon, 3 Mar 2008 21:10:03 GMT (envelope-from gnats) Date: Mon, 3 Mar 2008 21:10:03 GMT Message-Id: <200803032110.m23LA3eb075720@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/73777: [linux] [patch] linux emulation: root dir special handling useless and harmful X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 21:10:04 -0000 The following reply was made to PR kern/73777; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org Cc: Alexander Leidinger Subject: Re: kern/73777: [linux] [patch] linux emulation: root dir special handling useless and harmful Date: Mon, 03 Mar 2008 22:14:40 +0200 This is a multi-part message in MIME format. --------------050001090401010706020209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit An updated patch that makes the proposed behavior controlled by sysctl. Present behavior is the default. -- Andriy Gapon --------------050001090401010706020209 Content-Type: text/x-patch; name="rootdir-7.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rootdir-7.patch" --- sys/kern/vfs_lookup.c.orig 2007-09-21 13:16:56.000000000 +0300 +++ sys/kern/vfs_lookup.c 2008-03-03 22:03:16.000000000 +0200 @@ -96,6 +96,11 @@ SYSCTL_INT(_vfs, OID_AUTO, lookup_shared, CTLFLAG_RW, &lookup_shared, 0, "Enables/Disables shared locks for path name translation"); +static int alt_root_is_real_root = 1; +SYSCTL_INT(_vfs, OID_AUTO, alt_root_is_real_root, CTLFLAG_RW, + &alt_root_is_real_root, 0, + "Alternative/emulation root directory resolves to the real root"); + /* * Convert a pathname into a pointer to a locked vnode. * @@ -1071,26 +1076,28 @@ if (error != 0) goto keeporig; - /* - * We now compare the vnode of the prefix to the one - * vnode asked. If they resolve to be the same, then we - * ignore the match so that the real root gets used. - * This avoids the problem of traversing "../.." to find the - * root directory and never finding it, because "/" resolves - * to the emulation root directory. This is expensive :-( - */ - NDINIT(&ndroot, LOOKUP, FOLLOW | MPSAFE, UIO_SYSSPACE, prefix, - td); - - /* We shouldn't ever get an error from this namei(). */ - error = namei(&ndroot); - if (error == 0) { - if (nd.ni_vp == ndroot.ni_vp) - error = ENOENT; - - NDFREE(&ndroot, NDF_ONLY_PNBUF); - vrele(ndroot.ni_vp); - VFS_UNLOCK_GIANT(NDHASGIANT(&ndroot)); + if (alt_root_is_real_root) { + /* + * We now compare the vnode of the prefix to the one + * vnode asked. If they resolve to be the same, then we + * ignore the match so that the real root gets used. + * This avoids the problem of traversing "../.." to find the + * root directory and never finding it, because "/" resolves + * to the emulation root directory. This is expensive :-( + */ + NDINIT(&ndroot, LOOKUP, FOLLOW | MPSAFE, UIO_SYSSPACE, prefix, + td); + + /* We shouldn't ever get an error from this namei(). */ + error = namei(&ndroot); + if (error == 0) { + if (nd.ni_vp == ndroot.ni_vp) + error = ENOENT; + + NDFREE(&ndroot, NDF_ONLY_PNBUF); + vrele(ndroot.ni_vp); + VFS_UNLOCK_GIANT(NDHASGIANT(&ndroot)); + } } } --------------050001090401010706020209-- From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 3 22:08:53 2008 Return-Path: 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 2DB8D1065672; Mon, 3 Mar 2008 22:08:53 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id F39788FC29; Mon, 3 Mar 2008 22:08:52 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m23M8oJ4083530; Mon, 3 Mar 2008 17:08:51 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Mon, 3 Mar 2008 12:11:08 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Roman Divacky In-Reply-To: <20080303144152.GA47887@freebsd.org> Message-ID: <20080303121025.K920@desktop> References: <20080302110130.GA30563@freebsd.org> <20080303022202.S920@desktop> <20080303144152.GA47887@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 22:08:53 -0000 On Mon, 3 Mar 2008, Roman Divacky wrote: > On Mon, Mar 03, 2008 at 02:23:49AM -1000, Jeff Roberson wrote: >> >> On Sun, 2 Mar 2008, Roman Divacky wrote: >> >>> hi.. >>> >>> jeff commited his cpu set and I tried to map that to linuxulator >>> version of linux_sched_getaffinity(), the current (untested) code >>> looks like this: >>> >>> /* >>> * Get affinity of a process >>> */ >>> int >>> linux_sched_getaffinity(struct thread *td, >>> struct linux_sched_getaffinity_args *args) >>> { >>> int error; >>> struct cpuset_getaffinity_args cga; >>> >>> if (args->len < sizeof(cpumask_t)) >>> return (EINVAL); >> >> Len here is in number of bits I believe as it is for our cpusetsize. > > no.. its specified in bytes You are right. So it is with fdsets. Please hold on and I'll change cpuset to be bytes as well. > >>> >>> cga.level = CPU_LEVEL_WHICH; >>> cga.which = CPU_WHICH_PID; >>> cga.id = args->pid; >>> cga.cpusetsize = sizeof(cpumask_t) * NBBY; >>> cga.mask = (long *) args->user_mask_ptr; >> >> Our call will accept larger values and zero fill any bits we don't use. >> It should be safe to pass the original len. > > ok.. will do it like that > > thnx for the comments, can anyone test the stuff? (I have access > to UP only ATM) > > roman > From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 03:50:03 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30E451065671 for ; Tue, 4 Mar 2008 03:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 30CFC8FC16 for ; Tue, 4 Mar 2008 03:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m243o2bF009052 for ; Tue, 4 Mar 2008 03:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m243o21q009051; Tue, 4 Mar 2008 03:50:02 GMT (envelope-from gnats) Date: Tue, 4 Mar 2008 03:50:02 GMT Message-Id: <200803040350.m243o21q009051@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: fchang@cs.ubc.ca Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fchang@cs.ubc.ca List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 03:50:03 -0000 The following reply was made to PR ports/117350; it has been noted by GNATS. From: fchang@cs.ubc.ca To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 Date: Mon, 3 Mar 2008 19:26:40 -0800 (PST) Please test this patch. I tested it on FreeBSD RELEASE-7.0 i386 uniprocessor, and I could boot Windows XP from it. --- work/vmware-distrib/vmmon-only/freebsd/driver.c.old 2008-03-03 17:03:25.000000000 +0000 +++ work/vmware-distrib/vmmon-only/freebsd/driver.c 2008-03-03 17:04:13.000000000 +0000 @@ -397,12 +397,12 @@ if ((error = falloc(td, &fp, &fd)) != 0) return error; - FILEDESC_LOCK(p->p_fd); + FILEDESC_XLOCK(p->p_fd); fp->f_data = data; fp->f_flag = flags & FMASK; fp->f_ops = &vmmon_fileops; fp->f_type = DTYPE_SOCKET; - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_XUNLOCK(p->p_fd); #if __FreeBSD_version >= 501111 /* falloc now returns TWO references to the file, not one. */ @@ -1309,6 +1309,19 @@ return FALSE; } +static vm_paddr_t +get_avail_end(void) +{ + vm_paddr_t avail_end; + int i; + avail_end = phys_avail[1]; + for (i = 0; phys_avail[i + 1]; i += 2) { + if (phys_avail[i + 1] > avail_end) + avail_end = phys_avail[i + 1]; + } + return avail_end; +} + /* * Allocate and lock numPages of memory physically continguous addresses * below 4GB. @@ -1341,6 +1354,7 @@ VMDEBUG("vmmon_alloc_low_pages: malloc MemRange failed\n"); return ENOMEM; } + vm_paddr_t avail_end = get_avail_end(); if (avail_end > ISA_DMA_BOUNCE_THRESHOLD) high = trunc_page(ISA_DMA_BOUNCE_THRESHOLD); else --- work/vmware-distrib/vmmon-only/include/vm_asm.h.old 2008-03-03 17:03:22.000000000 +0000 +++ work/vmware-distrib/vmmon-only/include/vm_asm.h 2008-03-03 17:07:21.000000000 +0000 @@ -1020,6 +1020,7 @@ *----------------------------------------------------------------------------- */ +#if 0 static INLINE void Div643264(uint64 dividend, uint32 divisor, @@ -1047,6 +1048,7 @@ *quotient = (uint64)hQuotient << 32 | lQuotient; } #endif +#endif #endif /* VM_ASM_H */ From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 08:10:03 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 663E21065671 for ; Tue, 4 Mar 2008 08:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 63D8A8FC1F for ; Tue, 4 Mar 2008 08:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m248A2XN029923 for ; Tue, 4 Mar 2008 08:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m248A2Nt029922; Tue, 4 Mar 2008 08:10:02 GMT (envelope-from gnats) Date: Tue, 4 Mar 2008 08:10:02 GMT Message-Id: <200803040810.m248A2Nt029922@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Boris Samorodov List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 08:10:03 -0000 The following reply was made to PR ports/117350; it has been noted by GNATS. From: Boris Samorodov To: bug-followup@FreeBSD.org, wangyi6854@gmail.com, fchang@cs.ubc.ca Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 Date: Tue, 04 Mar 2008 10:18:56 +0300 Here is a relevant diff for the port to test: ----- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/vmware3/Makefile,v retrieving revision 1.96 diff -u -r1.96 Makefile --- Makefile 25 Oct 2007 00:13:00 -0000 1.96 +++ Makefile 4 Mar 2008 07:15:18 -0000 @@ -105,6 +105,10 @@ cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd6-1.patch cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd6-2.patch .endif +.if ${OSVERSION} > 700000 + cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd7-1.patch + cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd7-2.patch +.endif pre-install: ${INSTALL_MAN} ${WRKSRC}/man/man1/vmware.1 ${MANPREFIX}/man/man1 Index: files/fbsd7-1.patch =================================================================== RCS file: files/fbsd7-1.patch diff -N files/fbsd7-1.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/fbsd7-1.patch 4 Mar 2008 07:15:18 -0000 @@ -0,0 +1,45 @@ +--- vmmon-only/freebsd/driver.c.orig 2008-03-04 10:05:14.000000000 +0300 ++++ vmmon-only/freebsd/driver.c 2008-03-04 10:09:23.000000000 +0300 +@@ -397,12 +397,12 @@ + if ((error = falloc(td, &fp, &fd)) != 0) + return error; + +- FILEDESC_LOCK(p->p_fd); ++ FILEDESC_XLOCK(p->p_fd); + fp->f_data = data; + fp->f_flag = flags & FMASK; + fp->f_ops = &vmmon_fileops; + fp->f_type = DTYPE_SOCKET; +- FILEDESC_UNLOCK(p->p_fd); ++ FILEDESC_XUNLOCK(p->p_fd); + + #if __FreeBSD_version >= 501111 + /* falloc now returns TWO references to the file, not one. */ +@@ -1309,6 +1309,19 @@ + return FALSE; + } + ++static vm_paddr_t ++get_avail_end(void) ++{ ++ vm_paddr_t avail_end; ++ int i; ++ avail_end = phys_avail[1]; ++ for (i = 0; phys_avail[i + 1]; i += 2) { ++ if (phys_avail[i + 1] > avail_end) ++ avail_end = phys_avail[i + 1]; ++ } ++ return avail_end; ++} ++ + /* + * Allocate and lock numPages of memory physically continguous addresses + * below 4GB. +@@ -1341,6 +1354,7 @@ + VMDEBUG("vmmon_alloc_low_pages: malloc MemRange failed\n"); + return ENOMEM; + } ++ vm_paddr_t avail_end = get_avail_end(); + if (avail_end > ISA_DMA_BOUNCE_THRESHOLD) + high = trunc_page(ISA_DMA_BOUNCE_THRESHOLD); + else Index: files/fbsd7-2.patch =================================================================== RCS file: files/fbsd7-2.patch diff -N files/fbsd7-2.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/fbsd7-2.patch 4 Mar 2008 07:15:18 -0000 @@ -0,0 +1,18 @@ +--- vmmon-only/include/vm_asm.h.orig 2003-07-24 01:43:38.000000000 +0400 ++++ vmmon-only/include/vm_asm.h 2008-03-04 09:29:45.000000000 +0300 +@@ -1020,6 +1020,7 @@ + *----------------------------------------------------------------------------- + */ + ++#if 0 + static INLINE void + Div643264(uint64 dividend, + uint32 divisor, +@@ -1047,6 +1048,7 @@ + *quotient = (uint64)hQuotient << 32 | lQuotient; + } + #endif ++#endif + + + #endif /* VM_ASM_H */ ----- WBR -- bsam From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 09:05:44 2008 Return-Path: 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 5F1C31065675; Tue, 4 Mar 2008 09:05:44 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 224558FC2D; Tue, 4 Mar 2008 09:05:43 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A57CB2.dip.t-dialin.net [84.165.124.178]) by redbull.bpaserver.net (Postfix) with ESMTP id 1093C2E0BC; Tue, 4 Mar 2008 10:05:39 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 6A8987DC67; Tue, 4 Mar 2008 10:05:31 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m2495Umc082214; Tue, 4 Mar 2008 10:05:30 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 04 Mar 2008 10:05:30 +0100 Message-ID: <20080304100530.y7l41fwhdwkgwc00@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 04 Mar 2008 10:05:30 +0100 From: Alexander Leidinger To: Roman Divacky References: <20080217162938.GA82845@freebsd.org> <20080303115420.6fm3xuto6c8kcssk@webmail.leidinger.net> <20080303150607.GB47887@freebsd.org> <20080303174101.e6xfqplzuo404wkw@webmail.leidinger.net> <20080303172659.GA65716@freebsd.org> In-Reply-To: <20080303172659.GA65716@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: epoll patch for review X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 09:05:44 -0000 Quoting Roman Divacky (from Mon, 3 Mar 2008 =20 18:26:59 +0100): >> What I meant was: linux supports the MOD so we should support it too. >> You already thought about it (ADD+DEL), so think a little bit more and >> finish it (it doesn't look like it is a lot of code to write for >> this). And as a second thought: the action to do may depend upon the >> modification requested (when it is in fact a null op, we should maybe >> do just nothing)... > > things can always be added later. I'd prefer to commit solution for > 95% of the problems now instead of solution for 100% in 2012 Print a message for the part which is not implemented yet. I don't =20 mind if parts are added later, but I mind if the user is not informed =20 about unimplemented things which should get implemented. Bye, Alexander. --=20 We were happily married for eight months. Unfortunately, we were married for four and a half years. =09=09-- Nick Faldo http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 11:20:03 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9305B10656A6 for ; Tue, 4 Mar 2008 11:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8ECBD8FC32 for ; Tue, 4 Mar 2008 11:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m24BK3Jw045477 for ; Tue, 4 Mar 2008 11:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m24BK3hU045475; Tue, 4 Mar 2008 11:20:03 GMT (envelope-from gnats) Date: Tue, 4 Mar 2008 11:20:03 GMT Message-Id: <200803041120.m24BK3hU045475@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Alastair Hogge Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alastair Hogge List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 11:20:03 -0000 The following reply was made to PR ports/117350; it has been noted by GNATS. From: Alastair Hogge To: bug-followup@freebsd.org, wangyi6854@gmail.com Cc: Roman Divacky , fchang@cs.ubc.ca Subject: Re: ports/117350: compile error in emulators/vmware3 Date: Tue, 4 Mar 2008 22:02:55 +1100 I get the following in /var/log/messages when /usr/local/etc/rc.d/001.vmware.sh is executed: vmmon: SMP support for this release is BROKEN. module_register_init: MOD_LOAD (vmmon, 0xc4e89cc0, 0) error 22 sysctl -a | grep ncpu: hw.ncpu: 2 uname -a: FreeBSD madcat 7.0-STABLE FreeBSD 7.0-STABLE #1: Tue Mar 4 21:01:57 EST 2008 agh@madcat:/usr/obj/usr/src/sys/MADCAT i386 -Al From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 13:00:08 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95D651065765 for ; Tue, 4 Mar 2008 13:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 58A748FC24 for ; Tue, 4 Mar 2008 13:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m24D03dn052408 for ; Tue, 4 Mar 2008 13:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m24D03QE052407; Tue, 4 Mar 2008 13:00:03 GMT (envelope-from gnats) Date: Tue, 4 Mar 2008 13:00:03 GMT Message-Id: <200803041300.m24D03QE052407@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: fchang@cs.ubc.ca Cc: Subject: Re: ports/117350: compile error in emulators/vmware3 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fchang@cs.ubc.ca List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 13:00:08 -0000 The following reply was made to PR ports/117350; it has been noted by GNATS. From: fchang@cs.ubc.ca To: Alastair Hogge Cc: bug-followup@freebsd.org, wangyi6854@gmail.com, Roman Divacky Subject: Re: ports/117350: compile error in emulators/vmware3 Date: Tue, 4 Mar 2008 04:52:47 -0800 (PST) Indeed I think currently it only works with a UP kernel. (I had to comment out "SMP" and "apic" in my kernel config) Sorry I don't know how to fix it for SMP kernel, but hopefully the patch might at least allow UP users use vmware3. From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 17:35:40 2008 Return-Path: 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 8E257106566B; Tue, 4 Mar 2008 17:35:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 1F90A8FC19; Tue, 4 Mar 2008 17:35:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A57CB2.dip.t-dialin.net [84.165.124.178]) by redbull.bpaserver.net (Postfix) with ESMTP id 238622E28D; Tue, 4 Mar 2008 18:35:36 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 1C830938D2; Tue, 4 Mar 2008 18:35:30 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m24HZT84066913; Tue, 4 Mar 2008 18:35:29 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 04 Mar 2008 18:35:29 +0100 Message-ID: <20080304183529.kpaf3f76gcg4g0cs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 04 Mar 2008 18:35:29 +0100 From: Alexander Leidinger To: rdivacky@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.223, required 6, BAYES_00 -15.00, J_CHICKENPOX_35 0.60, RDNS_DYNAMIC 0.10, TW_CP 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: epoll review continued X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 17:35:40 -0000 > @@ -57,7 +57,9 @@ > > =09if (args->size <=3D 0) > =09=09return (EINVAL); > -=09/* args->size is unused. Linux ignores it as well. */ > +=09/* +=09 * args->size is unused. Linux just tests it +=09 * and then = =20 > forgets it as well. */ My proposal ("Submitted by: netchild" in the log): /* * The size is documented to be only a hint. We don't need * it with kevent. The epoll_create man-page tells that the * size has to be not-negative, but the linux kernel test * for a value of at least 1, so for error compatibility we * do the same. */ The above comment should be before the if, not after. > =09return (kqueue(td, &k_args)); > } > @@ -140,7 +142,9 @@ > > /* > * Copyin callback used by kevent. This copies already > - * converted filters to the kevent internal memory. > + * converted filters from kernel memory to the kevent + * internal =20 > kernel memory. Hence the memcpy instead of > + * copyin. > */ Thanks. > static int > linux_kev_copyin(void *arg, struct kevent *kevp, int count) > @@ -193,7 +197,8 @@ > =09=09break; > =09case LINUX_EPOLL_CTL_MOD: > =09=09=09/* TODO: DELETE && ADD maybe? */ > -=09=09=09return (EINVAL); > +=09=09=09printf("linux_epoll_ctl: CTL_MOD not yet >implemented.\n"); > +=09=09=09return (ENOSYS); ENOSYS is "syscall not implemented". But we implement the syscall. =20 When glibc tests this syscall and gets back a ENOSYS, it may switch to =20 a different way of monitoring files. I think the EINVAL was better, as =20 it will result in an application error and notify us that we need to =20 take care about this part of the syscall. > =09=09break; > =09case LINUX_EPOLL_CTL_DEL: > =09=09=09kev.flags =3D EV_DELETE | EV_DISABLE; > @@ -241,6 +246,9 @@ > > =09error =3D kern_kevent(td, args->epfd, 0, args->maxevents, &k_ops, &ts); > > -=09/* translation? */ > +=09/* +=09 * kern_keven might return ENOMEM which is not expected from = =20 > epoll_wait. > +=09 * Maybe we should translate that but I don't think it matters at all. > +=09 */ > =09return (error); > } It is not even ENOMEM. After a quick look I think it should be like: - ESRCH, ENOENT should map to EINVAL - EACCESS should map to EFAULT or EINVAL (don't really know) - ENOMEM should map to... ? You also need to deliver EINVAL, if maxevents is <=3D 0 (according to =20 the man page of epoll_wait). Bye, Alexander. --=20 If you sow your wild oats, hope for a crop failure. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 21:37:07 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7081D106566B for ; Tue, 4 Mar 2008 21:37:07 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id CB60E8FC15 for ; Tue, 4 Mar 2008 21:37:06 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 8E184297C0A; Tue, 4 Mar 2008 22:37:04 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m24LVrve019126; Tue, 4 Mar 2008 22:31:53 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m24LVrFU019125; Tue, 4 Mar 2008 22:31:53 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 4 Mar 2008 22:31:53 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20080304213153.GB15959@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org References: <20080302204702.GA62895@saturn.kn-bremen.de> <20080303000134.GA68444@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20080303000134.GA68444@saturn.kn-bremen.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: patch: tcg bug (was: Re: qemu 2008-03-02 snapshot FreeBSD 7.0/amd64 guest regression) (tcg?) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 21:37:07 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 03, 2008 at 01:01:34AM +0100, Juergen Lock wrote: > On Sun, Mar 02, 2008 at 09:47:02PM +0100, Juergen Lock wrote: > > Hi! > > > > I've prepared a FreeBSD qemu-devel port update, as already mentioned > > on the freebsd-emulation list, and found the FreeBSD 7.0/amd64 isos > > now pagefault repeatedly, saying: > > > > panic: page fault > > cpuid = 0 > > kernel trap 12 with interrupts disabled > > > > > > Fatal trap 12: page fault while in kernel mode > > cpuid = 0; apic id = 00 > > fault virtual address = 0x20 > > fault code = supervisor read data, page not present > > instruction pointer = 0x8:0xffffffff8046c704 > > trap number = 12 > > frame pointer = 0x10:0x0 > > ... > > > > 0xffffffff8046c704 in the 7.0-RELEASE kernel used on the isos is > > in _thread_lock_flags: > > > > (kgdb) disassemble _thread_lock_flags > > Dump of assembler code for function _thread_lock_flags: > > 0xffffffff8046c6e0 <_thread_lock_flags+0>: push %r14 > > 0xffffffff8046c6e2 <_thread_lock_flags+2>: mov %rdi,%r14 > > 0xffffffff8046c6e5 <_thread_lock_flags+5>: push %r13 > > 0xffffffff8046c6e7 <_thread_lock_flags+7>: push %r12 > > 0xffffffff8046c6e9 <_thread_lock_flags+9>: push %rbp > > 0xffffffff8046c6ea <_thread_lock_flags+10>: push %rbx > > 0xffffffff8046c6eb <_thread_lock_flags+11>: mov %gs:0x0,%r13 > > 0xffffffff8046c6f4 <_thread_lock_flags+20>: xor %r12d,%r12d > > 0xffffffff8046c6f7 <_thread_lock_flags+23>: callq 0xffffffff8071df80 > > 0xffffffff8046c6fc <_thread_lock_flags+28>: mov (%r14),%rbp > > 0xffffffff8046c6ff <_thread_lock_flags+31>: mov $0x4,%eax > > 0xffffffff8046c704 <_thread_lock_flags+36>: lock cmpxchg %r13,0x20(%rbp) > > 0xffffffff8046c70a <_thread_lock_flags+42>: sete %al > > 0xffffffff8046c70d <_thread_lock_flags+45>: test %al,%al > > 0xffffffff8046c70f <_thread_lock_flags+47>: jne 0xffffffff8046c799 <_thread_lock_flags+185> > > 0xffffffff8046c715 <_thread_lock_flags+53>: mov 0x20(%rbp),%rdx > > 0xffffffff8046c719 <_thread_lock_flags+57>: cmp %r13,%rdx > > 0xffffffff8046c71c <_thread_lock_flags+60>: je 0xffffffff8046c7cd <_thread_lock_flags+237> > > 0xffffffff8046c722 <_thread_lock_flags+66>: callq 0xffffffff8071c4e0 > > ---Type to continue, or q to quit--- > > 0xffffffff8046c727 <_thread_lock_flags+71>: jmp 0xffffffff8046c73c <_thread_lock_flags+92> > > 0xffffffff8046c729 <_thread_lock_flags+73>: data16 > > ... > > > > so this looks like either %rbp is indeed zero or that cmpxchg insn isnt > > getting correctly translated. If you want to reproduce just boot the 35 MB > > 7.0-RELEASE-amd64-bootonly.iso in qemu-system-x86_64 (without kqemu); you > > can find mirrors via > > http://mirrorlist.freebsd.org/ > > (search for isos, amd64 architecture, I used 7.0 as you can see.) > > > > Oh, if you want to look at the live kernel you can boot the > > 7.0-RELEASE-amd64-livefs.iso in 0.9.1 with the previously mentioned > > patch (see > > http://www.nabble.com/forum/ViewPost.jtp?post=14921171 > > ), select fixit->cdrom in the menu that comes up after choosing > > the keyboard layout, and run `kgdb /dist/boot/kernel/kernel /dev/mem'. > > Update: looks like the bug is i386 host only, at least I got a report > of amd64 host working. (will try to confirm later...) Ok, confirmed. Tho the real problem was another fault that I must have overlooked at first: There's a movsbq at (in this kernel) vm_phys_free_pages+4 that gets sign extended wrong, 1 gets turned into 0x100000001 in %r8 at vm_phys_free_pages+9, which causes the offset into vm_phys_segs (0xffffffff80a68340) to end up as 0x2000000020 instead of 0x20, causing the first fault at vm_phys_free_pages+43, which then only seems to trigger the repeated faults mentioned above. (kgdb) disassemble vm_phys_free_pages Dump of assembler code for function vm_phys_free_pages: 0xffffffff80692ae0 : push %r12 0xffffffff80692ae2 : push %rbp 0xffffffff80692ae3 : push %rbx 0xffffffff80692ae4 : movsbq 0x61(%rdi),%r8 0xffffffff80692ae9 : mov %esi,%ebx 0xffffffff80692aeb : mov 0x40(%rdi),%rbp 0xffffffff80692aef : shl $0x5,%r8 0xffffffff80692af3 : cmp $0xb,%esi 0xffffffff80692af6 : lea 0xffffffff80a68340(%r8),%r12 0xffffffff80692afd : jg 0xffffffff80692c4e 0xffffffff80692b03 : lea 0xc(%rbx),%ecx 0xffffffff80692b06 : mov $0x1,%eax 0xffffffff80692b0b : mov 0xffffffff80a68340(%r8),%rdx 0xffffffff80692b12 : shl %cl,%eax 0xffffffff80692b14 : cltq 0xffffffff80692b16 : xor %rbp,%rax 0xffffffff80692b19 : cmp %rdx,%rax ... I'll attch the fix for qemu/tcg/tcg-op.h (the same bug was in the movswq case). More interesting for the ppl reading -emulation might be a patch I applied to kgdb, to be able to do `kgdb -r <32bit-box>:1234 kernel.debug' from the amd64 box to talk to qemu -s -S (yeah I ended up using a debug kernel for this, as you can see above by the missing `mov %rsp,%rbp' the kernel on the isos got built with -fomit-frame-pointer): Index: src/gnu/usr.bin/gdb/kgdb/main.c =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/gdb/kgdb/main.c,v retrieving revision 1.11 diff -u -r1.11 main.c --- src/gnu/usr.bin/gdb/kgdb/main.c 4 Jan 2006 23:17:52 -0000 1.11 +++ src/gnu/usr.bin/gdb/kgdb/main.c 4 Mar 2008 15:38:39 -0000 @@ -408,19 +408,21 @@ errx(1, "%s: not a regular file", path); vmcore = strdup(path); } else if (remote != NULL && remote[0] != ':' && remote[0] != '|') { - if (stat(remote, &st) != 0) { - snprintf(path, sizeof(path), "/dev/%s", remote); - if (stat(path, &st) != 0) { - err(1, "%s", remote); + if (!strchr(remote, ':')) { + if (stat(remote, &st) != 0) { + snprintf(path, sizeof(path), "/dev/%s", remote); + if (stat(path, &st) != 0) { + err(1, "%s", remote); + /* NOTREACHED */ + } + free(remote); + remote = strdup(path); + } + if (!S_ISCHR(st.st_mode) && !S_ISFIFO(st.st_mode)) { + errx(1, "%s: not a special file, FIFO or socket", + remote); /* NOTREACHED */ } - free(remote); - remote = strdup(path); - } - if (!S_ISCHR(st.st_mode) && !S_ISFIFO(st.st_mode)) { - errx(1, "%s: not a special file, FIFO or socket", - remote); - /* NOTREACHED */ } } else if (argc > optind) { if (vmcore == NULL) enjoy, Juergen --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-tcg3 Index: qemu/tcg/tcg-op.h @@ -1172,7 +1172,7 @@ tcg_gen_op3i(INDEX_op_qemu_ld8s, ret, addr, mem_index); #else tcg_gen_op4i(INDEX_op_qemu_ld8s, ret, addr, TCGV_HIGH(addr), mem_index); - tcg_gen_ext8s_i32(TCGV_HIGH(ret), ret); + tcg_gen_sari_i32(TCGV_HIGH(ret), ret, 31); #endif } @@ -1192,7 +1192,7 @@ tcg_gen_op3i(INDEX_op_qemu_ld16s, ret, addr, mem_index); #else tcg_gen_op4i(INDEX_op_qemu_ld16s, ret, addr, TCGV_HIGH(addr), mem_index); - tcg_gen_ext16s_i32(TCGV_HIGH(ret), ret); + tcg_gen_sari_i32(TCGV_HIGH(ret), ret, 31); #endif } --pWyiEgJYm5f9v55/-- From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 22:00:34 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7D051065673; Tue, 4 Mar 2008 22:00:34 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from kazon.borderworlds.dk (kazon.borderworlds.dk [213.239.213.48]) by mx1.freebsd.org (Postfix) with ESMTP id 7D0C08FC28; Tue, 4 Mar 2008 22:00:34 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from dominion.borderworlds.dk (localhost [127.0.0.1]) by kazon.borderworlds.dk (Postfix) with ESMTP id D138D17052; Tue, 4 Mar 2008 22:43:03 +0100 (CET) Received: by dominion.borderworlds.dk (Postfix, from userid 2000) id 8F591496; Tue, 4 Mar 2008 22:43:03 +0100 (CET) To: freebsd-emulation@FreeBSD.org References: <20080302202120.GA62260@saturn.kn-bremen.de> From: Christian Laursen Date: Tue, 04 Mar 2008 22:43:03 +0100 In-Reply-To: <20080302202120.GA62260@saturn.kn-bremen.de> (Juergen Lock's message of "Sun\, 2 Mar 2008 21\:21\:20 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-ports@FreeBSD.org Subject: Re: please test qemu-devel port update (2008-03-02 snapshot) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 22:00:34 -0000 Juergen Lock writes: > Anyway the update is here (also queued on tb3): > http://people.freebsd.org/~nox/qemu/qemu-devel-20080302.patch I just gave it a test run with a FreeBSD guest, and it seems to work like expected. The curses option is awesome. Now I can run my text mode guests inside screen. :) -- Christian Laursen From owner-freebsd-emulation@FreeBSD.ORG Tue Mar 4 22:48:57 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67818106566B; Tue, 4 Mar 2008 22:48:57 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 15CB28FC15; Tue, 4 Mar 2008 22:48:57 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 9C3BB299012; Tue, 4 Mar 2008 23:48:55 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m24McNHm036416; Tue, 4 Mar 2008 23:38:23 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m24McMW5036415; Tue, 4 Mar 2008 23:38:22 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 4 Mar 2008 23:38:22 +0100 To: freebsd-emulation@FreeBSD.org, freebsd-ports@FreeBSD.org Message-ID: <20080304223822.GA35494@saturn.kn-bremen.de> Mail-Followup-To: freebsd-emulation@FreeBSD.org, freebsd-ports@FreeBSD.org References: <20080302202120.GA62260@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080302202120.GA62260@saturn.kn-bremen.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: Re: please test qemu-devel port update (2008-03-02 snapshot) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 22:48:57 -0000 On Sun, Mar 02, 2008 at 09:21:20PM +0100, Juergen Lock wrote: > Hi! > > Again, interesting things are happening in the qemu development tree, > among others the ncurses patch has been committed (allowing to see > vga text output without sdl by passing -curses), e1000 emulation i.e. > an emulated em(4) that should be even faster than the e100 since it also > features TSO is now in (-net nic,model=e1000), and qemu is now moving > to a new codegenerator called tcg that's supposed to eliminate the gcc3 > dependency once everything has been converted to it. > > Unfortunately, tcg also seems to cause the first regression I've found, > qemu-system-x86_64 now makes the 7.0 amd64 isos pagefault in > _thread_lock_flags, even tho I've added the cpu-exec.c patch that > fixes the hang of the same guests with qemu 0.9.1 (see > http://lists.gnu.org/archive/html/qemu-devel/2008-02/msg00334.html > ), I'll post a little more about that in a seperate post to the qemu list. > (will crosspost to -emulation.) > > Anyway the update is here (also queued on tb3): > http://people.freebsd.org/~nox/qemu/qemu-devel-20080302.patch Updated patch available, fixed the 7.0 amd64 iso faults (indeed it was a tcg bug, I can boot livefs amd64 also on i386 now and enter fixit), and added the gnutls dependency knob that I just commited to the 0.9.1 qemu port too. enjoy, Juergen From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 01:50:51 2008 Return-Path: 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 41E41106566B; Wed, 5 Mar 2008 01:50:51 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 035A98FC1C; Wed, 5 Mar 2008 01:50:50 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m251ohvh022158; Tue, 4 Mar 2008 20:50:49 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Tue, 4 Mar 2008 15:53:08 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Roman Divacky In-Reply-To: <20080303121025.K920@desktop> Message-ID: <20080304155205.X920@desktop> References: <20080302110130.GA30563@freebsd.org> <20080303022202.S920@desktop> <20080303144152.GA47887@freebsd.org> <20080303121025.K920@desktop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 01:50:51 -0000 On Mon, 3 Mar 2008, Jeff Roberson wrote: > > On Mon, 3 Mar 2008, Roman Divacky wrote: > >> On Mon, Mar 03, 2008 at 02:23:49AM -1000, Jeff Roberson wrote: >>> >>> On Sun, 2 Mar 2008, Roman Divacky wrote: >>> >>>> hi.. >>>> >>>> jeff commited his cpu set and I tried to map that to linuxulator >>>> version of linux_sched_getaffinity(), the current (untested) code >>>> looks like this: >>>> >>>> /* >>>> * Get affinity of a process >>>> */ >>>> int >>>> linux_sched_getaffinity(struct thread *td, >>>> struct linux_sched_getaffinity_args *args) >>>> { >>>> int error; >>>> struct cpuset_getaffinity_args cga; >>>> >>>> if (args->len < sizeof(cpumask_t)) >>>> return (EINVAL); This should not be necessary anymore. >>> >>> Len here is in number of bits I believe as it is for our cpusetsize. >> >> no.. its specified in bytes > > You are right. So it is with fdsets. Please hold on and I'll change cpuset > to be bytes as well. > >> >>>> >>>> cga.level = CPU_LEVEL_WHICH; >>>> cga.which = CPU_WHICH_PID; >>>> cga.id = args->pid; >>>> cga.cpusetsize = sizeof(cpumask_t) * NBBY; >>>> cga.mask = (long *) args->user_mask_ptr; >>> I checked in a change to make our cpusetsize compatible. You should only have to supply CPU_LEVEL_WHICH and CPU_WHICH_PID now. The rest of the arguments are compatible. Thanks! Jeff >>> Our call will accept larger values and zero fill any bits we don't use. >>> It should be safe to pass the original len. >> >> ok.. will do it like that >> >> thnx for the comments, can anyone test the stuff? (I have access >> to UP only ATM) >> >> roman >> > From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 13:33:46 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D530106566B for ; Wed, 5 Mar 2008 13:33:46 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 850AE8FC13 for ; Wed, 5 Mar 2008 13:33:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25DXhda001625; Wed, 5 Mar 2008 14:33:44 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25DXhg9001624; Wed, 5 Mar 2008 14:33:43 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 14:33:43 +0100 (CET) Message-Id: <200803051333.m25DXhg9001624@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 14:33:44 +0100 (CET) Cc: Subject: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 13:33:46 -0000 Hi, Has anybody successfully used the flash plugin with Opera on FreeBSD 7.0-Release? If so -- how? I upgraded my notebook from an oldish 6-stable to 7.0, and I have to admit that I'm beginning to regret it, because several important things don't work anymore. I tried the native opera, but when I start it, it opens a pop-up window saying the there was some problem starting the operapluginwrapper. I tried hunting it down with ktrace, but without success. Then I tried to install linux-opera. At least it finds the plugin, but when it tries to run it I get an X11 error on stdout: "BadMatch (invalid parameter attributes)", and opera prints "Plug-in 18299 is not responding. It will be closed." Of course it _did_ work fine before the upgrade. I have rebuilt all ports after the upgrade, so everything should be up-to-date. Does someone have an idea how to get this working? Otherwise I'll have to downgrade to FreeBSD 6, which means more wasted time. :-( Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 13:42:04 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8A3F106566B for ; Wed, 5 Mar 2008 13:42:04 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 5961C8FC2B for ; Wed, 5 Mar 2008 13:42:03 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id CCA486760AB; Wed, 5 Mar 2008 14:42:01 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r9BfnU-4QzTT; Wed, 5 Mar 2008 14:41:44 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A227A6760D2; Wed, 5 Mar 2008 14:41:44 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m25DfiY2099700; Wed, 5 Mar 2008 14:41:44 +0100 (CET) (envelope-from rdivacky) Date: Wed, 5 Mar 2008 14:41:44 +0100 From: Roman Divacky To: Oliver Fromme Message-ID: <20080305134144.GA99615@freebsd.org> References: <200803051333.m25DXhg9001624@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803051333.m25DXhg9001624@lurza.secnetix.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 13:42:04 -0000 > Does someone have an idea how to get this working? > Otherwise I'll have to downgrade to FreeBSD 6, which > means more wasted time. :-( can you try 7-STABLE? there's a bug with mmap() that might cause various problems and it's fixed in 7-STABLE but not in 7.0R thnx, roman From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 13:59:02 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD07B106566C; Wed, 5 Mar 2008 13:59:02 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 551148FC12; Wed, 5 Mar 2008 13:59:02 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25Dx0qv002938; Wed, 5 Mar 2008 14:59:00 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25Dx0iH002937; Wed, 5 Mar 2008 14:59:00 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 14:59:00 +0100 (CET) Message-Id: <200803051359.m25Dx0iH002937@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, rdivacky@FreeBSD.ORG In-Reply-To: <20080305134144.GA99615@freebsd.org> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 14:59:01 +0100 (CET) Cc: Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 13:59:03 -0000 Roman Divacky wrote: > > Does someone have an idea how to get this working? > > Otherwise I'll have to downgrade to FreeBSD 6, which > > means more wasted time. :-( > > can you try 7-STABLE? there's a bug with mmap() that might > cause various problems and it's fixed in 7-STABLE but not > in 7.0R OK, I will try, thanks for the hint. I'll report back about the results. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Perl will consistently give you what you want, unless what you want is consistency." -- Larry Wall From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 16:07:00 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD4FE1065675; Wed, 5 Mar 2008 16:07:00 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 204188FC15; Wed, 5 Mar 2008 16:06:59 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25G6w5q033016; Wed, 5 Mar 2008 17:06:58 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25G6wrQ033015; Wed, 5 Mar 2008 17:06:58 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 17:06:58 +0100 (CET) Message-Id: <200803051606.m25G6wrQ033015@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, rdivacky@FreeBSD.ORG In-Reply-To: <20080305134144.GA99615@freebsd.org> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 17:06:58 +0100 (CET) Cc: Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 16:07:00 -0000 Roman Divacky wrote: > > Does someone have an idea how to get this working? > > Otherwise I'll have to downgrade to FreeBSD 6, which > > means more wasted time. :-( > > can you try 7-STABLE? there's a bug with mmap() that might > cause various problems and it's fixed in 7-STABLE but not > in 7.0R I'm now running a fresh RELENG_7, but it doesn't make a difference, I'm afraid. The error is still exactly the same. Actually I'm not sure if it's a regression in the linux emulation ... It could well be something I do wrong, or something I forgot during update. This is the complete output I get: (:1174): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. The program '' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 97 error_code 8 request_code 147 minor_code 3) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) opera: Plug-in 1174 is not responding. It will be closed. opera: Define environment variable OPERA_KEEP_BLOCKED_PLUGIN to keep blocked plug-ins. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript." -- Jamie Zawinski, when asked: "What's wrong with perl?" From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 16:44:29 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83C531065672 for ; Wed, 5 Mar 2008 16:44:29 +0000 (UTC) (envelope-from personrp@ccbh.com) Received: from 1upmc-msx-pp1.upmc.edu (1upmc-msx-pp4.upmc.edu [128.147.16.142]) by mx1.freebsd.org (Postfix) with ESMTP id 3B1E78FC21 for ; Wed, 5 Mar 2008 16:44:29 +0000 (UTC) (envelope-from personrp@ccbh.com) Received: from 1upmc-msximc2.isdip.upmc.edu (1upmc-msximc2.isdip.upmc.edu [128.147.18.40]) by 1upmc-msx-pp4.upmc.edu (8.13.8/8.13.8) with ESMTP id m25GMrhb005080; Wed, 5 Mar 2008 11:22:53 -0500 Received: from 1upmc-msx6.acct.upmchs.net ([128.147.16.61]) by 1upmc-msximc2.isdip.upmc.edu with Microsoft SMTPSVC(5.0.2195.6713); Wed, 5 Mar 2008 11:22:53 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Wed, 5 Mar 2008 11:22:52 -0500 Message-ID: In-Reply-To: <200803051606.m25G6wrQ033015@lurza.secnetix.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Flash plugin with opera or linux-opera on 7.0-Release Thread-Index: Ach+2wXjwLJHgDrwTaaWQhQej/SgBAAAXy8w From: "Person, Roderick" To: "Oliver Fromme" , X-OriginalArrivalTime: 05 Mar 2008 16:22:53.0043 (UTC) FILETIME=[2992FC30:01C87EDD] Cc: Subject: RE: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 16:44:29 -0000 > -----Original Message----- > From: owner-freebsd-emulation@freebsd.org=20 > [mailto:owner-freebsd-emulation@freebsd.org] On Behalf Of=20 > Oliver Fromme > Sent: Wednesday, March 05, 2008 11:07 AM > To: freebsd-emulation@FreeBSD.ORG; rdivacky@FreeBSD.ORG > Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release >=20 > Roman Divacky wrote: > > > Does someone have an idea how to get this working? > > > Otherwise I'll have to downgrade to FreeBSD 6, which >=20 > > means more wasted time. :-( > > can you try 7-STABLE?=20 > there's a bug with mmap() that might > cause various=20 > problems and it's fixed in 7-STABLE but not > in 7.0R >=20 > I'm now running a fresh RELENG_7, but it doesn't make a=20 > difference, I'm afraid. The error is still exactly the same. >=20 > Actually I'm not sure if it's a regression in the linux=20 > emulation ... It could well be something I do wrong, or=20 > something I forgot during update. >=20 > This is the complete output I get: >=20 > (:1174): Gtk-WARNING **: Locale not supported by C library. > Using the fallback 'C' locale. > The program '' received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadMatch (invalid parameter attributes)'. > (Details: serial 97 error_code 8 request_code 147 minor_code 3) > (Note to programmers: normally, X errors are reported=20 > asynchronously; > that is, you will receive the error a while after causing it. > To debug your program, run it with the --sync command line > option to change this behavior. You can then get a meaningful > backtrace from your debugger if you break on the=20 > gdk_x_error() function.) > opera: Plug-in 1174 is not responding. It will be closed. > opera: Define environment variable OPERA_KEEP_BLOCKED_PLUGIN=20 > to keep blocked plug-ins. >=20 I've been running Opera on 7 since it was Current in 2006 and sadly Flash isn't going to work. You may be able to get Flash 7 to work but I here that that isn't useful on the web anymore. I don't have a great need for flash. I was able to get GNASH and swfdec-plugin to work at various degrees. Rod Person Programmer http://www.ccbh.com "Knowledge which is acquired under compulsion obtains no hold on the mind."=20 -Plato=20 From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 17:01:39 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 785F2106566C for ; Wed, 5 Mar 2008 17:01:39 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id E6F228FC1A for ; Wed, 5 Mar 2008 17:01:38 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25H1VHd035801; Wed, 5 Mar 2008 18:01:31 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25H1V8e035800; Wed, 5 Mar 2008 18:01:31 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 18:01:31 +0100 (CET) Message-Id: <200803051701.m25H1V8e035800@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, personrp@ccbh.com In-Reply-To: X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 18:01:32 +0100 (CET) Cc: Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 17:01:39 -0000 Person, Roderick wrote: > I've been running Opera on 7 since it was Current in 2006 and sadly > Flash isn't going to work. You may be able to get Flash 7 to work But *HOW*?!? I've been trying for hours. > but I here that that isn't useful on the web anymore. > I don't have a great need for flash. Well, I do have a need, and flash7 is sufficient for me. I'm aware that flash9 has various problems, so I haven't even tried it. All I want to do is get flash7 working. *sigh* Looks like I have to plan for a downgrade to FreeBSD 6 tomorrow. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Python is executable pseudocode. Perl is executable line noise. From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 17:06:37 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CDF9106566C for ; Wed, 5 Mar 2008 17:06:37 +0000 (UTC) (envelope-from personrp@ccbh.com) Received: from 1upmc-msx-pp2.upmc.edu (1upmc-msx-pp2.upmc.edu [128.147.16.133]) by mx1.freebsd.org (Postfix) with ESMTP id C773B8FC20 for ; Wed, 5 Mar 2008 17:06:36 +0000 (UTC) (envelope-from personrp@ccbh.com) Received: from 1upmc-msximc1.isdip.upmc.edu (1upmc-msximc1.isdip.upmc.edu [128.147.18.39]) by 1upmc-msx-pp2.upmc.edu (8.13.8/8.13.8) with ESMTP id m25H6ZqP016615; Wed, 5 Mar 2008 12:06:35 -0500 Received: from 1upmc-msx6.acct.upmchs.net ([128.147.16.61]) by 1upmc-msximc1.isdip.upmc.edu with Microsoft SMTPSVC(5.0.2195.6713); Wed, 5 Mar 2008 12:06:35 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Wed, 5 Mar 2008 12:06:34 -0500 Message-ID: In-Reply-To: <200803051701.m25H1V8e035800@lurza.secnetix.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Flash plugin with opera or linux-opera on 7.0-Release Thread-Index: Ach+4pUeoARL/PjeTW2aspmQYT1yOwAADwSg From: "Person, Roderick" To: "Oliver Fromme" , X-OriginalArrivalTime: 05 Mar 2008 17:06:35.0754 (UTC) FILETIME=[44D4ECA0:01C87EE3] Cc: Subject: RE: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 17:06:37 -0000 > -----Original Message----- > From: Oliver Fromme [mailto:olli@lurza.secnetix.de]=20 > Sent: Wednesday, March 05, 2008 12:02 PM > To: freebsd-emulation@FreeBSD.ORG; Person, Roderick > Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release >=20 > Person, Roderick wrote: > > I've been running Opera on 7 since it was Current in 2006=20 > and sadly > Flash isn't going to work. You may be able to=20 > get Flash 7 to work >=20 > But *HOW*?!? I've been trying for hours. My install was "fresh" I didn't upgrade.=20 So I'm going to have to assume that in the upgrade process some lib somewhere got missed. I've never seen errors link that from Opera. I have Opera 9.25 both linux and native from the ports installed and I even have the 9.50 beta installed. Rod Person Programmer http://www.ccbh.com "Knowledge which is acquired under compulsion obtains no hold on the mind."=20 -Plato=20 From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 17:23:21 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73DCF1065671 for ; Wed, 5 Mar 2008 17:23:21 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id DEC128FC12 for ; Wed, 5 Mar 2008 17:23:20 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25HNDGE036891; Wed, 5 Mar 2008 18:23:14 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25HNDDd036890; Wed, 5 Mar 2008 18:23:13 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 18:23:13 +0100 (CET) Message-Id: <200803051723.m25HNDDd036890@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, personrp@ccbh.com In-Reply-To: X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 18:23:14 +0100 (CET) Cc: Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 17:23:21 -0000 Person, Roderick wrote: > Oliver Fromme wrote: > > Person, Roderick wrote: > > > I've been running Opera on 7 since it was Current in 2006 > > > Flash isn't going to work. You may be able to get Flash 7 to work > > > > But *HOW*?!? I've been trying for hours. > > My install was "fresh" I didn't upgrade. > So I'm going to have to assume that in the upgrade process some lib > somewhere got missed. My system is basically "fresh", too. After I updated to 7.0-RELEASE (now RELENG_7, but doesn't make a difference), I rebuilt _all_ ports from scratch. > I've never seen errors link that from Opera. Does that mean the flash7 plugin does work for you? That error message only appears when I try to run a flash app. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97 From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 17:38:13 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 245D91065673 for ; Wed, 5 Mar 2008 17:38:13 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9338D8FC18 for ; Wed, 5 Mar 2008 17:38:12 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m25HcB8L037915; Wed, 5 Mar 2008 18:38:11 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m25HcBfW037914; Wed, 5 Mar 2008 18:38:11 +0100 (CET) (envelope-from olli) Date: Wed, 5 Mar 2008 18:38:11 +0100 (CET) Message-Id: <200803051738.m25HcBfW037914@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG In-Reply-To: <200803051333.m25DXhg9001624@lurza.secnetix.de> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 05 Mar 2008 18:38:11 +0100 (CET) Cc: Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 17:38:13 -0000 Hi again, OK, it seems to work now. I don't know what exactly made it working, though ... I changed the xorg video driver (replaced "i810" with "intel"), changed a few things in the configuration, bit depth is now 32 (I think it was 16 before). Now the xorg error message is gone, and the flash apps are displayed fine in linux-opera. It's still a step backwards because it works with native opera in FreeBSD 6, but I'm glad I could get it to work at all. I think the port www/opera-linuxplugins should be marked broken on FreeBSD >= 7. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The last good thing written in C was Franz Schubert's Symphony number 9." -- Erwin Dieterich From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 18:17:56 2008 Return-Path: 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 CF518106566C for ; Wed, 5 Mar 2008 18:17:56 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 833728FC25 for ; Wed, 5 Mar 2008 18:17:55 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id A347D67611F; Wed, 5 Mar 2008 19:17:54 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bF4fs96NMATN; Wed, 5 Mar 2008 19:17:42 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 68743676110; Wed, 5 Mar 2008 19:17:42 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m25IHfXL016508; Wed, 5 Mar 2008 19:17:41 +0100 (CET) (envelope-from rdivacky) Date: Wed, 5 Mar 2008 19:17:41 +0100 From: Roman Divacky To: Alexander Leidinger Message-ID: <20080305181741.GA15620@freebsd.org> References: <20080304183529.kpaf3f76gcg4g0cs@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080304183529.kpaf3f76gcg4g0cs@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org Subject: Re: epoll review continued X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 18:17:57 -0000 On Tue, Mar 04, 2008 at 06:35:29PM +0100, Alexander Leidinger wrote: > >@@ -57,7 +57,9 @@ > > > > if (args->size <= 0) > > return (EINVAL); > >- /* args->size is unused. Linux ignores it as well. */ > >+ /* + * args->size is unused. Linux just tests it + * and then > >forgets it as well. */ > > My proposal ("Submitted by: netchild" in the log): > /* > * The size is documented to be only a hint. We don't need > * it with kevent. The epoll_create man-page tells that the > * size has to be not-negative, but the linux kernel test > * for a value of at least 1, so for error compatibility we > * do the same. > */ > > The above comment should be before the if, not after. given that man pages and the source of the kernel are totally independent I would not trust the man pages... and certainly would not cite that as a reliable source > >static int > >linux_kev_copyin(void *arg, struct kevent *kevp, int count) > >@@ -193,7 +197,8 @@ > > break; > > case LINUX_EPOLL_CTL_MOD: > > /* TODO: DELETE && ADD maybe? */ > >- return (EINVAL); > >+ printf("linux_epoll_ctl: CTL_MOD not yet > >>implemented.\n"); > >+ return (ENOSYS); > > ENOSYS is "syscall not implemented". But we implement the syscall. > When glibc tests this syscall and gets back a ENOSYS, it may switch to > a different way of monitoring files. I think the EINVAL was better, as > it will result in an application error and notify us that we need to > take care about this part of the syscall. #define ENOSYS 78 /* Function not implemented */ its used for this purposes all over the kernel so I think its ok > > break; > > case LINUX_EPOLL_CTL_DEL: > > kev.flags = EV_DELETE | EV_DISABLE; > >@@ -241,6 +246,9 @@ > > > > error = kern_kevent(td, args->epfd, 0, args->maxevents, &k_ops, &ts); > > > >- /* translation? */ > >+ /* + * kern_keven might return ENOMEM which is not expected from > >epoll_wait. > >+ * Maybe we should translate that but I don't think it matters at > >all. > >+ */ > > return (error); > >} > > It is not even ENOMEM. After a quick look I think it should be like: > - ESRCH, ENOENT should map to EINVAL > - EACCESS should map to EFAULT or EINVAL (don't really know) > - ENOMEM should map to... ? > > You also need to deliver EINVAL, if maxevents is <= 0 (according to > the man page of epoll_wait). I fixed the maxevents bug but... the ESRCH/ENOENT/EACCESS apply only to epoll_wait (as that does the registering). I'd let it as it is and fix it if problems from real usage arise. can someone test this using java/apache/something? I dont have time/energy for that :( roman From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 18:46:52 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23F441065675 for ; Wed, 5 Mar 2008 18:46:52 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id E26708FC18 for ; Wed, 5 Mar 2008 18:46:51 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m25I5MOM066203; Wed, 5 Mar 2008 11:05:22 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m25I5EPS005654; Wed, 5 Mar 2008 11:05:14 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m25I5EHc005651; Wed, 5 Mar 2008 11:05:14 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18382.57562.557553.377249@gromit.timing.com> Date: Wed, 5 Mar 2008 11:05:14 -0700 From: John E Hein To: Oliver Fromme In-Reply-To: <200803051738.m25HcBfW037914@lurza.secnetix.de> References: <200803051333.m25DXhg9001624@lurza.secnetix.de> <200803051738.m25HcBfW037914@lurza.secnetix.de> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: freebsd-emulation@freebsd.org Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 18:46:52 -0000 Oliver Fromme wrote at 18:38 +0100 on Mar 5, 2008: > OK, it seems to work now. I don't know what exactly made > it working, though ... I changed the xorg video driver > (replaced "i810" with "intel"), changed a few things in > the configuration, bit depth is now 32 (I think it was > 16 before). Now the xorg error message is gone, and the > flash apps are displayed fine in linux-opera. The 16 bit depth (in combination with other things... see URLs below) was the culprit for your BadMatch errors. Here are some comments I left in my xorg.conf after updating to 7.2 # With DefaultDepth 16 & the Composite extension, mozilla based (gtk?) # apps running the flash plugin get BadMatch X errors with the Intel # internal card (and with the Radeon if not using the xtrap extension). # # Using depth of 24 works around this problem. Apparently it's a problem # with the application picking different visuals. You can force some # apps to disable use of composite visuals to also work around this. # example: env XLIB_SKIP_ARGB_VISUALS=1 xdpyinfo # # https://bugs.launchpad.net/firefox/+bug/63570 # http://lists.freedesktop.org/archives/xorg/2004-August/002773.html # http://en.wikipedia.org/wiki/RGBA_color_space # http://www.bsdforums.org/forums/showthread.php?p=283342&posted=1#post283342 This has nothing to do with linux emulation, of course. Any flash issues you have are separate issues. From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 19:33:51 2008 Return-Path: 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 C19F0106567F; Wed, 5 Mar 2008 19:33:51 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 73D638FC2B; Wed, 5 Mar 2008 19:33:51 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 411AD676132; Wed, 5 Mar 2008 20:33:50 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EVWNUO7eaAd3; Wed, 5 Mar 2008 20:33:31 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 7F86E676102; Wed, 5 Mar 2008 20:33:31 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id m25JXU58021152; Wed, 5 Mar 2008 20:33:30 +0100 (CET) (envelope-from rdivacky) Date: Wed, 5 Mar 2008 20:33:30 +0100 From: Roman Divacky To: Jeff Roberson Message-ID: <20080305193330.GA18756@freebsd.org> References: <20080302110130.GA30563@freebsd.org> <20080303022202.S920@desktop> <20080303144152.GA47887@freebsd.org> <20080303121025.K920@desktop> <20080304155205.X920@desktop> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20080304155205.X920@desktop> User-Agent: Mutt/1.4.2.3i Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 19:33:51 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > >>>> if (args->len < sizeof(cpumask_t)) > >>>> return (EINVAL); >=20 > This should not be necessary anymore. >=20 > >>> > >>>Len here is in number of bits I believe as it is for our cpusetsize. > >> > >>no.. its specified in bytes > > > >You are right. So it is with fdsets. Please hold on and I'll change=20 > >cpuset to be bytes as well. > > > >> > >>>> > >>>> cga.level =3D CPU_LEVEL_WHICH; > >>>> cga.which =3D CPU_WHICH_PID; > >>>> cga.id =3D args->pid; > >>>> cga.cpusetsize =3D sizeof(cpumask_t) * NBBY; > >>>> cga.mask =3D (long *) args->user_mask_ptr; > >>> >=20 > I checked in a change to make our cpusetsize compatible. You should only= =20 > have to supply CPU_LEVEL_WHICH and CPU_WHICH_PID now. The rest of the=20 > arguments are compatible. is it possible to make cpuset_setproc non-static? if so could you please review the following patch: www.vlakno.cz/~rdivacky/linux_affinity.patch and tell me if its ok? (it lacks #include of something that should contain the prototype for cpuset_setproc()) thnx, roman --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfO9YoACgkQLVEj6D3CBEw1QwCfRyMTnaslDncJpTG8ppSZX/5U N2oAoILXqNN2kadGrAaON8GY+gWq8nxJ =9Uz2 -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 5 22:47:16 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D3E2106566C for ; Wed, 5 Mar 2008 22:47:16 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by mx1.freebsd.org (Postfix) with ESMTP id E27F38FC25 for ; Wed, 5 Mar 2008 22:47:15 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost ([69.203.87.53]) by hrndva-omta01.mail.rr.com with ESMTP id <20080305223209.SATV28731.hrndva-omta01.mail.rr.com@localhost> for ; Wed, 5 Mar 2008 22:32:09 +0000 Date: Wed, 5 Mar 2008 17:32:09 -0500 From: Scott Robbins To: freebsd-emulation@freebsd.org Message-ID: <20080305223209.GA30889@mail.scottro.net> Mail-Followup-To: freebsd-emulation@freebsd.org References: <200803051723.m25HNDDd036890@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200803051723.m25HNDDd036890@lurza.secnetix.de> User-Agent: mutt-ng/devel-r804 (FreeBSD) Subject: Re: Flash plugin with opera or linux-opera on 7.0-Release X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2008 22:47:16 -0000 On Wed, Mar 05, 2008 at 06:23:13PM +0100, Oliver Fromme wrote: > > > I've never seen errors link that from Opera. > > Does that mean the flash7 plugin does work for you? That > error message only appears when I try to run a flash app. Flash7 has worked for me in linux-opera for quite awhile. I don't recollect doing anything special to get it working. I sometimes have seen that error you mentioned, but it didn't seem to hurt anything--youtube, and other things using flash7 work without problem for me. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Angel: Buffy. Buffy: Angel. Xander: Xander. From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 6 04:32:35 2008 Return-Path: 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 467BD1065670; Thu, 6 Mar 2008 04:32:35 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7338FC17; Thu, 6 Mar 2008 04:32:34 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m264WVBH041574; Wed, 5 Mar 2008 23:32:33 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Wed, 5 Mar 2008 18:35:02 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Roman Divacky In-Reply-To: <20080305193330.GA18756@freebsd.org> Message-ID: <20080305183333.K920@desktop> References: <20080302110130.GA30563@freebsd.org> <20080303022202.S920@desktop> <20080303144152.GA47887@freebsd.org> <20080303121025.K920@desktop> <20080304155205.X920@desktop> <20080305193330.GA18756@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, jeff@freebsd.org Subject: Re: [PATCH] linux get affinity syscall X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 04:32:35 -0000 On Wed, 5 Mar 2008, Roman Divacky wrote: >>>>>> if (args->len < sizeof(cpumask_t)) >>>>>> return (EINVAL); >> >> This should not be necessary anymore. >> >>>>> >>>>> Len here is in number of bits I believe as it is for our cpusetsize. >>>> >>>> no.. its specified in bytes >>> >>> You are right. So it is with fdsets. Please hold on and I'll change >>> cpuset to be bytes as well. >>> >>>> >>>>>> >>>>>> cga.level = CPU_LEVEL_WHICH; >>>>>> cga.which = CPU_WHICH_PID; >>>>>> cga.id = args->pid; >>>>>> cga.cpusetsize = sizeof(cpumask_t) * NBBY; >>>>>> cga.mask = (long *) args->user_mask_ptr; >>>>> >> >> I checked in a change to make our cpusetsize compatible. You should only >> have to supply CPU_LEVEL_WHICH and CPU_WHICH_PID now. The rest of the >> arguments are compatible. > > is it possible to make cpuset_setproc non-static? > > if so could you please review the following patch: > > www.vlakno.cz/~rdivacky/linux_affinity.patch > > and tell me if its ok? (it lacks #include of something that should > contain the prototype for cpuset_setproc()) Why not call cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, id, cpusetlen, user_mask_ptr); as you do with getaffinity? Then we don't have to expose the internal interface. You also don't have to error check the length then. Thanks, Jeff > > thnx, roman > From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 6 06:47:03 2008 Return-Path: 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 DD91F1065671; Thu, 6 Mar 2008 06:47:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 8A15C8FC12; Thu, 6 Mar 2008 06:47:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A55E46.dip.t-dialin.net [84.165.94.70]) by redbull.bpaserver.net (Postfix) with ESMTP id A6EFB2E279; Thu, 6 Mar 2008 07:46:57 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id C1AF296B33; Thu, 6 Mar 2008 07:46:52 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m266kpjJ045827; Thu, 6 Mar 2008 07:46:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 06 Mar 2008 07:46:50 +0100 Message-ID: <20080306074650.dmiymxgogok4wok4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 06 Mar 2008 07:46:50 +0100 From: Alexander Leidinger To: Roman Divacky References: <20080304183529.kpaf3f76gcg4g0cs@webmail.leidinger.net> <20080305181741.GA15620@freebsd.org> In-Reply-To: <20080305181741.GA15620@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-12.904, required 6, BAYES_00 -15.00, J_CHICKENPOX_35 0.60, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: emulation@freebsd.org Subject: Re: epoll review continued X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 06:47:04 -0000 Quoting Roman Divacky (from Wed, 5 Mar 2008 =20 19:17:41 +0100): > On Tue, Mar 04, 2008 at 06:35:29PM +0100, Alexander Leidinger wrote: >> >@@ -57,7 +57,9 @@ >> > >> >=09if (args->size <=3D 0) >> >=09=09return (EINVAL); >> >-=09/* args->size is unused. Linux ignores it as well. */ >> >+=09/* +=09 * args->size is unused. Linux just tests it +=09 * and then >> >forgets it as well. */ >> >> My proposal ("Submitted by: netchild" in the log): >> /* >> * The size is documented to be only a hint. We don't need >> * it with kevent. The epoll_create man-page tells that the >> * size has to be not-negative, but the linux kernel test >> * for a value of at least 1, so for error compatibility we >> * do the same. >> */ >> >> The above comment should be before the if, not after. > > given that man pages and the source of the kernel are totally independent > I would not trust the man pages... and certainly would not cite > that as a reliable source This comment is supposed to show that we are aware of the man page and =20 about what the kernel does. Whoever reads this comment will get the =20 impression, that we did our homework and also gets told why we do the =20 check this way. When anything in linux (either the kernel or the man =20 page) changes, then anyone reading this comment will see, that we are =20 not up-to-date and know why the code is like it is and hopefully =20 notifies us. I agree that it is of no use for us at this moment, but =20 it improve the code quality a lot, as it helps maintaining this code =20 in the future. Just imagine how fast you would have understood some other parts of =20 the linuxulator, if there would have been similar comments. I'm sure =20 you would have fixed some bugs with more confidence, don't you? >> >static int >> >linux_kev_copyin(void *arg, struct kevent *kevp, int count) >> >@@ -193,7 +197,8 @@ >> >=09=09break; >> >=09case LINUX_EPOLL_CTL_MOD: >> >=09=09=09/* TODO: DELETE && ADD maybe? */ >> >-=09=09=09return (EINVAL); >> >+=09=09=09printf("linux_epoll_ctl: CTL_MOD not yet >> >>implemented.\n"); >> >+=09=09=09return (ENOSYS); >> >> ENOSYS is "syscall not implemented". But we implement the syscall. >> When glibc tests this syscall and gets back a ENOSYS, it may switch to >> a different way of monitoring files. I think the EINVAL was better, as >> it will result in an application error and notify us that we need to >> take care about this part of the syscall. > > #define ENOSYS 78 /* Function not implemented */ > > its used for this purposes all over the kernel so I think its ok I've seen only complete syscalls behaving like this. Can you please =20 point out subfeatures in syscalls not written by you which do this? >> >=09=09break; >> >=09case LINUX_EPOLL_CTL_DEL: >> >=09=09=09kev.flags =3D EV_DELETE | EV_DISABLE; >> >@@ -241,6 +246,9 @@ >> > >> >=09error =3D kern_kevent(td, args->epfd, 0, args->maxevents, &k_ops, &ts= ); >> > >> >-=09/* translation? */ >> >+=09/* +=09 * kern_keven might return ENOMEM which is not expected from >> >epoll_wait. >> >+=09 * Maybe we should translate that but I don't think it matters at >> >all. >> >+=09 */ >> >=09return (error); >> >} >> >> It is not even ENOMEM. After a quick look I think it should be like: >> - ESRCH, ENOENT should map to EINVAL >> - EACCESS should map to EFAULT or EINVAL (don't really know) >> - ENOMEM should map to... ? >> >> You also need to deliver EINVAL, if maxevents is <=3D 0 (according to >> the man page of epoll_wait). > > I fixed the maxevents bug but... > > the ESRCH/ENOENT/EACCESS apply only to epoll_wait (as that does the > registering). Yes. The comment which was added by you in the source talks about =20 epoll_wait, so was I. And I thought I checked that this part was =20 really part of epoll_wait. To make it specific: I haven't seen an =20 errno translation in epoll_wait, but epoll_wait needs to do this. > I'd let it as it is and fix it if problems from real usage arise. I will not try to get time to commit this without an errno translation. Bye, Alexander. --=20 We may not return the affection of those who like us, but we always respect their good judgment. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 14:46:24 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8094106566B for ; Fri, 7 Mar 2008 14:46:24 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7CDE88FC27 for ; Fri, 7 Mar 2008 14:46:24 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JXdq1-0006Ko-Pd for freebsd-emulation@freebsd.org; Fri, 07 Mar 2008 14:46:21 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 14:46:21 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 14:46:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Marcin Cieslak Date: Fri, 07 Mar 2008 15:46:12 +0100 Lines: 16 Message-ID: <47D15534.3050006@system.pl> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080228 SeaMonkey/1.1.8 In-Reply-To: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> Sender: news Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 14:46:24 -0000 Adrian Penisoara wrote: > Hi, > I would like to know whether similar efforts have been undergoing and > whether people came up with some tips & tricks on this. Please, do not crossport to so many lists. I have randomly picked up -emulation as the right now. Make sure kern/102956 is fixed properly. Maybe also this is worth looking at (although more a client issue, but can be painful to Oracle users): http://thread.gmane.org/gmane.os.freebsd.devel.emulation/3086 --Marcin From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 14:56:22 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37DA71065677; Fri, 7 Mar 2008 14:56:22 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from mx1.rink.nu (alastor.rink.nu [213.34.49.5]) by mx1.freebsd.org (Postfix) with ESMTP id DE3508FC33; Fri, 7 Mar 2008 14:56:21 +0000 (UTC) (envelope-from rink@tragedy.rink.nu) Received: from localhost (alastor.rink.nu [213.34.49.5]) by mx1.rink.nu (Postfix) with ESMTP id 19C76BFECB7; Fri, 7 Mar 2008 14:39:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.5]) by localhost (alastor.rink.nu [213.34.49.5]) (amavisd-new, port 10024) with ESMTP id wuoX3rsvJzTA; Fri, 7 Mar 2008 14:39:46 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.rink.nu (Postfix) with ESMTP id C8CADBFEB79; Fri, 7 Mar 2008 14:39:46 +0000 (UTC) Received: from tragedy.rink.nu (tragedy.rink.nu [213.34.49.3]) by tragedy.rink.nu (8.13.8/8.13.8) with ESMTP id m27EdkUV038500; Fri, 7 Mar 2008 15:39:46 +0100 (CET) (envelope-from rink@tragedy.rink.nu) Received: (from rink@localhost) by tragedy.rink.nu (8.13.8/8.13.8/Submit) id m27EdkCO038499; Fri, 7 Mar 2008 15:39:46 +0100 (CET) (envelope-from rink) Date: Fri, 7 Mar 2008 15:39:46 +0100 From: Rink Springer To: Adrian Penisoara Message-ID: <20080307143946.GI90443@rink.nu> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-database@freebsd.org, freebsd-isp@freebsd.org, freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 14:56:22 -0000 Hi, On Fri, Mar 07, 2008 at 04:36:56PM +0200, Adrian Penisoara wrote: > After having to deploy an Oracle Database XE [1] installation (with Linux > 32bit binaries from the official RPM package) on a production FreeBSD > 6.2machine I realized it would be very much feasible to produce a > FreeBSD > port/package for it. > I would like to know whether similar efforts have been undergoing and > whether people came up with some tips & tricks on this. We run Oracle XE on two FreeBSD 6.3 machines at work - we've just manually set it up, but are very interested in a port of it. We did the same as you basically - just uncompress it and move the files in place. Regards, -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 15:05:53 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A9F61065673 for ; Fri, 7 Mar 2008 15:05:53 +0000 (UTC) (envelope-from ady@ady.ro) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by mx1.freebsd.org (Postfix) with ESMTP id BB8818FC13 for ; Fri, 7 Mar 2008 15:05:51 +0000 (UTC) (envelope-from ady@ady.ro) Received: by el-out-1112.google.com with SMTP id v27so568590ele.12 for ; Fri, 07 Mar 2008 07:05:50 -0800 (PST) Received: by 10.142.79.15 with SMTP id c15mr586525wfb.105.1204900616842; Fri, 07 Mar 2008 06:36:56 -0800 (PST) Received: by 10.143.37.8 with HTTP; Fri, 7 Mar 2008 06:36:56 -0800 (PST) Message-ID: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> Date: Fri, 7 Mar 2008 16:36:56 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: freebsd-database@freebsd.org, freebsd-ports@freebsd.org, freebsd-emulation@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: fd713219ff5180ce Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-isp@freebsd.org, freebsd-hackers@freebsd.org Subject: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 15:05:53 -0000 Hi, After having to deploy an Oracle Database XE [1] installation (with Linux 32bit binaries from the official RPM package) on a production FreeBSD 6.2machine I realized it would be very much feasible to produce a FreeBSD port/package for it. I would like to know whether similar efforts have been undergoing and whether people came up with some tips & tricks on this. The goal is not only to add the port into FreeBSD's ports tree but also to eventually convince Oracle (I work for them) to post the package on their official download page. [1] http://www.oracle.com/technology/products/database/xe/index.html Thank you for your time and help, Adrian Penisoara ROFUG / EnterpriseBSD From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 15:14:45 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBE47106566B; Fri, 7 Mar 2008 15:14:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 92E828FC16; Fri, 7 Mar 2008 15:14:45 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A56687.dip.t-dialin.net [84.165.102.135]) by redbull.bpaserver.net (Postfix) with ESMTP id 67A8C2E28D; Fri, 7 Mar 2008 16:14:38 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 2DBCB8C65A; Fri, 7 Mar 2008 16:14:16 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m27FEFnZ009858; Fri, 7 Mar 2008 16:14:15 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 07 Mar 2008 16:14:15 +0100 Message-ID: <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 07 Mar 2008 16:14:15 +0100 From: Alexander Leidinger To: Adrian Penisoara References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> In-Reply-To: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-10.592, required 6, BAYES_00 -15.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10, SUSPICIOUS_RECIPS 2.91) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-database@freebsd.org, freebsd-isp@freebsd.org, freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 15:14:46 -0000 Quoting Adrian Penisoara (from Fri, 7 Mar 2008 =20 16:36:56 +0200): > Hi, > > After having to deploy an Oracle Database XE [1] installation (with Linu= x > 32bit binaries from the official RPM package) on a production FreeBSD > 6.2machine I realized it would be very much feasible to produce a > FreeBSD > port/package for it. > I would like to know whether similar efforts have been undergoing and > whether people came up with some tips & tricks on this. > > The goal is not only to add the port into FreeBSD's ports tree but also t= o > eventually convince Oracle (I work for them) to post the package on their > official download page. I'm not aware of something like this. Feel free to ask questions =20 regarding the linuxulator and our linux infrastructure in the ports on =20 emulation@. Also feel free to ask for review of the port on emulation@. Bye, Alexander. --=20 Security isn't. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 16:29:11 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CB551065670 for ; Fri, 7 Mar 2008 16:29:11 +0000 (UTC) (envelope-from keirre.adams@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.229]) by mx1.freebsd.org (Postfix) with ESMTP id B11118FC12 for ; Fri, 7 Mar 2008 16:29:09 +0000 (UTC) (envelope-from keirre.adams@gmail.com) Received: by hu-out-0506.google.com with SMTP id 28so333556hub.8 for ; Fri, 07 Mar 2008 08:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=sMcWQt3snmp+Dkwx2XP0fVEZTJTK9BwsmXhV7j62S60=; b=IW8yfzwKgIC+rWUb6qIfT9nfQUVzyq/AmNILzs/MRjhs05rd7yutfYUwgtawjgUaCbEtAuIYOcxncdz5Zg4NZvjfCUN7UfUp1zwaa+Wm3AaB8z6+wKl73w/2AaXRyO6G1q/BccxoymaRXW5L+wgfA+OG45d6lddRa7nstHaeVOM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hSrjK1td0XVep2qnHow2vMi/e8YqDPmWFUlALtRZfwSAjLo1f6FgvpTQ4oOx/JfRI8NmJ+juwlCFts/3mwKMdDZS35HDbJJL3hdb6XpOw9mIjoPqbvSOaFLf4PnWoCuwhwXtD+yYLN4W18qx6ADpYtsG67kRz6XV5nvYbnOAq8U= Received: by 10.78.182.17 with SMTP id e17mr4314385huf.26.1204906368655; Fri, 07 Mar 2008 08:12:48 -0800 (PST) Received: by 10.78.120.5 with HTTP; Fri, 7 Mar 2008 08:12:48 -0800 (PST) Message-ID: <36b1573d0803070812m527c6b7y2d37441cdbd344e5@mail.gmail.com> Date: Fri, 7 Mar 2008 11:12:48 -0500 From: "Jonathan Adams" Sender: keirre.adams@gmail.com To: "Rink Springer" In-Reply-To: <20080307143946.GI90443@rink.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307143946.GI90443@rink.nu> X-Google-Sender-Auth: be06977adab6e9fa Cc: freebsd-hackers@freebsd.org, freebsd-isp@freebsd.org, freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org, freebsd-database@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 16:29:11 -0000 I am defnitely interested in helping in this area if needed. A couple of years ago, I struggled mightily trying to get Oracle running on 5.1 On Fri, Mar 7, 2008 at 9:39 AM, Rink Springer wrote: > Hi, > > > On Fri, Mar 07, 2008 at 04:36:56PM +0200, Adrian Penisoara wrote: > > After having to deploy an Oracle Database XE [1] installation (with Linux > > 32bit binaries from the official RPM package) on a production FreeBSD > > 6.2machine I realized it would be very much feasible to produce a > > FreeBSD > > port/package for it. > > I would like to know whether similar efforts have been undergoing and > > whether people came up with some tips & tricks on this. > > We run Oracle XE on two FreeBSD 6.3 machines at work - we've just > manually set it up, but are very interested in a port of it. We did > the same as you basically - just uncompress it and move the files in > place. > > Regards, > > -- > Rink P.W. Springer - http://rink.nu > "Anyway boys, this is America. Just because you get more votes doesn't > mean you win." - Fox Mulder > > > _______________________________________________ > freebsd-database@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-database > To unsubscribe, send any mail to "freebsd-database-unsubscribe@freebsd.org" > -- ___________________________ Jon Adams web: http://www.scis.nova.edu/~jonaadam mail: keirre.adams@gmail.com --------------------------------------------- "Strength does not come from physical capacity. It comes from an indomitable will." - Mohandas Gandhi From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 17:01:04 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EDAC1065670 for ; Fri, 7 Mar 2008 17:01:04 +0000 (UTC) (envelope-from shildret@scotth.emsphone.com) Received: from scotth.emsphone.com (scotth.emsphone.com [199.67.51.179]) by mx1.freebsd.org (Postfix) with ESMTP id C4BD98FC34 for ; Fri, 7 Mar 2008 17:01:03 +0000 (UTC) (envelope-from shildret@scotth.emsphone.com) Received: from scotth.emsphone.com (localhost [127.0.0.1]) by scotth.emsphone.com (8.14.2/8.14.2) with ESMTP id m27Gb9Y2099893; Fri, 7 Mar 2008 10:37:09 -0600 (CST) (envelope-from shildret@scotth.emsphone.com) Received: (from shildret@localhost) by scotth.emsphone.com (8.14.2/8.14.2/Submit) id m27Gb8t4099892; Fri, 7 Mar 2008 10:37:08 -0600 (CST) (envelope-from shildret@scotth.emsphone.com) From: "Scott T. Hildreth" To: Adrian Penisoara In-Reply-To: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 07 Mar 2008 10:37:08 -0600 Message-Id: <1204907828.14078.216.camel@scotth.emsphone.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 FreeBSD GNOME Team Port Cc: freebsd-emulation Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shildreth@allantgroup.com List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 17:01:04 -0000 On Fri, 2008-03-07 at 16:36 +0200, Adrian Penisoara wrote: > Hi, > > After having to deploy an Oracle Database XE [1] installation (with Linux > 32bit binaries from the official RPM package) on a production FreeBSD > 6.2machine I realized it would be very much feasible to produce a > FreeBSD > port/package for it. > I would like to know whether similar efforts have been undergoing and > whether people came up with some tips & tricks on this. > > The goal is not only to add the port into FreeBSD's ports tree but also to > eventually convince Oracle (I work for them) to post the package on their > official download page. I wonder if 10g will run on 7.0. I am running 9.2.0.8, but I think 10g might need the 2.6 kernel. > > [1] http://www.oracle.com/technology/products/database/xe/index.html > > Thank you for your time and help, > Adrian Penisoara > ROFUG / EnterpriseBSD > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 17:04:12 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF1871065683; Fri, 7 Mar 2008 17:04:12 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAFE8FC32; Fri, 7 Mar 2008 17:04:12 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 300FF2C50CCC; Fri, 7 Mar 2008 18:44:34 +0200 (EET) Date: Fri, 7 Mar 2008 18:44:27 +0200 From: Ion-Mihai Tetcu To: Alexander Leidinger Message-ID: <20080307184427.5a005ef9@it.buh.tecnik93.com> In-Reply-To: <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ZyD0r.hWfV2U7/CEsk/JMe+"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-hackers@freebsd.org, freebsd-isp@freebsd.org, freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org, freebsd-database@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 17:04:13 -0000 --Sig_/ZyD0r.hWfV2U7/CEsk/JMe+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 07 Mar 2008 16:14:15 +0100 Alexander Leidinger wrote: > Quoting Adrian Penisoara (from Fri, 7 Mar 2008 =20 > 16:36:56 +0200): >=20 > > Hi, > > > > After having to deploy an Oracle Database XE [1] installation > > (with Linux 32bit binaries from the official RPM package) on a > > production FreeBSD 6.2machine I realized it would be very much > > feasible to produce a FreeBSD > > port/package for it. > > I would like to know whether similar efforts have been undergoing > > and whether people came up with some tips & tricks on this. > > > > The goal is not only to add the port into FreeBSD's ports tree but > > also to eventually convince Oracle (I work for them) to post the > > package on their official download page. >=20 > I'm not aware of something like this. Feel free to ask questions =20 > regarding the linuxulator and our linux infrastructure in the ports > on emulation@. Also feel free to ask for review of the port on > emulation@. I've worked on such a port (probably that's what ady is referring to) but kinda' lost my interest in it ($REALLIFE got in the way). I'll try to find it (it was about 80% done) but I'm not sure it survived the clean-up sessions of my tmp/work dir (I don't know why I didn't ci it in our cvs ...). I'll work with Ady if he need help. Ady, BTW, after we have the port and, with some test cases provided by people that run it, can we hope for any kind of (semi-)official support ? --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" --Sig_/ZyD0r.hWfV2U7/CEsk/JMe+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfRcPEACgkQBX6fi0k6KXtK5ACaA7FcplMFzmCvkvJ6uEgJ1Uqi 3zoAoIfK1AB1UDIbBWj+/MSI6xuQRXUk =wMEl -----END PGP SIGNATURE----- --Sig_/ZyD0r.hWfV2U7/CEsk/JMe+-- From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 19:13:18 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E62E1065670 for ; Fri, 7 Mar 2008 19:13:18 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 436118FC25 for ; Fri, 7 Mar 2008 19:13:18 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 25so644736wfa.7 for ; Fri, 07 Mar 2008 11:13:17 -0800 (PST) Received: by 10.142.47.6 with SMTP id u6mr1009141wfu.29.1204917197345; Fri, 07 Mar 2008 11:13:17 -0800 (PST) Received: by 10.143.37.8 with HTTP; Fri, 7 Mar 2008 11:13:17 -0800 (PST) Message-ID: <78cb3d3f0803071113u52e53773pca8692fb1bb39f43@mail.gmail.com> Date: Fri, 7 Mar 2008 21:13:17 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: shildreth@allantgroup.com In-Reply-To: <1204907828.14078.216.camel@scotth.emsphone.com> MIME-Version: 1.0 References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <1204907828.14078.216.camel@scotth.emsphone.com> X-Google-Sender-Auth: 9b0ece2d957ad1fe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 19:13:18 -0000 Hi, On Fri, Mar 7, 2008 at 6:37 PM, Scott T. Hildreth < shildret@scotth.emsphone.com> wrote: > > On Fri, 2008-03-07 at 16:36 +0200, Adrian Penisoara wrote: > > Hi, > > > > After having to deploy an Oracle Database XE [1] installation (with > Linux > > 32bit binaries from the official RPM package) on a production FreeBSD > > 6.2machine I realized it would be very much feasible to produce a > > FreeBSD > > port/package for it. > > I would like to know whether similar efforts have been undergoing and > > whether people came up with some tips & tricks on this. > > > > The goal is not only to add the port into FreeBSD's ports tree but also > to > > eventually convince Oracle (I work for them) to post the package on > their > > official download page. > > I wonder if 10g will run on 7.0. I am running 9.2.0.8, but I think > 10g might need the 2.6 kernel. > > Actually Oracle XE is based on Oracle 10.2.0.1: $ lsnrctl status LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 07-MAR-2008 21:06:55 Copyright (c) 1991, 2005, Oracle. All rights reserved. $ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 $ uname -r 6.2-STABLE Installation docs say OracleXE is certified for RH Linux Fedora Core 4 (among others) which is just fine for us using emulators/linux_base-fc4 as a dependency. Regards, Adrian From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 19:22:06 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 660401065674 for ; Fri, 7 Mar 2008 19:22:06 +0000 (UTC) (envelope-from ady@ady.ro) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id DDF8C8FC1C for ; Fri, 7 Mar 2008 19:22:05 +0000 (UTC) (envelope-from ady@ady.ro) Received: by ik-out-1112.google.com with SMTP id b35so826550ika.3 for ; Fri, 07 Mar 2008 11:22:04 -0800 (PST) Received: by 10.142.49.4 with SMTP id w4mr986970wfw.220.1204917722995; Fri, 07 Mar 2008 11:22:02 -0800 (PST) Received: by 10.143.37.8 with HTTP; Fri, 7 Mar 2008 11:22:02 -0800 (PST) Message-ID: <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> Date: Fri, 7 Mar 2008 21:22:02 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: "Ion-Mihai Tetcu" In-Reply-To: <20080307184427.5a005ef9@it.buh.tecnik93.com> MIME-Version: 1.0 References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> <20080307184427.5a005ef9@it.buh.tecnik93.com> X-Google-Sender-Auth: ff765400406e178b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-database@freebsd.org, Alexander Leidinger , freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org, freebsd-isp@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 19:22:06 -0000 Hi, On Fri, Mar 7, 2008 at 6:44 PM, Ion-Mihai Tetcu wrote: > On Fri, 07 Mar 2008 16:14:15 +0100 > Alexander Leidinger wrote: > > > Quoting Adrian Penisoara (from Fri, 7 Mar 2008 > > 16:36:56 +0200): > > > > > Hi, > > > > > > After having to deploy an Oracle Database XE [1] installation > > > (with Linux 32bit binaries from the official RPM package) on a > > > production FreeBSD 6.2machine I realized it would be very much > > > feasible to produce a FreeBSD > > > port/package for it. > > > I would like to know whether similar efforts have been undergoing > > > and whether people came up with some tips & tricks on this. > > > > > > The goal is not only to add the port into FreeBSD's ports tree but > > > also to eventually convince Oracle (I work for them) to post the > > > package on their official download page. > > > > I'm not aware of something like this. Feel free to ask questions > > regarding the linuxulator and our linux infrastructure in the ports > > on emulation@. Also feel free to ask for review of the port on > > emulation@. > > I've worked on such a port (probably that's what ady is referring to) > but kinda' lost my interest in it ($REALLIFE got in the way). > > I'll try to find it (it was about 80% done) but I'm not sure it > survived the clean-up sessions of my tmp/work dir (I don't know why I > didn't ci it in our cvs ...). > > I'll work with Ady if he need help. > > Ady, BTW, after we have the port and, with some test cases provided by > people that run it, can we hope for any kind of (semi-)official > support ? > Not so fast (TM) :-). 1). I am talking about the Oracle XE package for which Oracle does not offer any commercial support (except for Forum discussions). 2). Usually everything comes down to business cases and business opportunities. So I think we will need to demonstrate a large userbase in order to get attention. I think we should be happy if an Oracle XE FreeBSD package will make it onto the downloads page in the first place. 3) Oracle EE / SE editions are indeed the big guns on the enterprise database market, but until there are some more steps. And Oracle does not use a packaging format for these, OUI (Oracle Universal Installer) is the designated tool to use. Note: The above represent solely my personal opinions, I do not speak on behalf of my employer (Oracle). Regards, Adrian Penisoara ROFUG / EnterpriseBSD. From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 20:42:56 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D60571065670; Fri, 7 Mar 2008 20:42:56 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.freebsd.org (Postfix) with ESMTP id 887218FC1A; Fri, 7 Mar 2008 20:42:56 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 729B42C50D0B; Fri, 7 Mar 2008 22:42:55 +0200 (EET) Date: Fri, 7 Mar 2008 22:42:49 +0200 From: Ion-Mihai Tetcu To: "Adrian Penisoara" Message-ID: <20080307224249.5e1a46db@it.buh.tecnik93.com> In-Reply-To: <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> <20080307184427.5a005ef9@it.buh.tecnik93.com> <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9gmZEMP79_OQ5L8G2lnL+2e"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-database@freebsd.org, Alexander Leidinger , freebsd-emulation@freebsd.org, freebsd-isp@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 20:42:57 -0000 --Sig_/9gmZEMP79_OQ5L8G2lnL+2e Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 7 Mar 2008 21:22:02 +0200 "Adrian Penisoara" wrote: [ .. ] > > Ady, BTW, after we have the port and, with some test cases provided > > by people that run it, can we hope for any kind of (semi-)official > > support ? > > =20 >=20 > Not so fast (TM) :-). >=20 > 1). I am talking about the Oracle XE package for which Oracle does > not offer any commercial support (except for Forum discussions). >=20 > 2). Usually everything comes down to business cases and business > opportunities. So I think we will need to demonstrate a large > userbase in order to get attention. I think we should be happy if an > Oracle XE FreeBSD package will make it onto the downloads page in the > first place. Yep, this is what I was thinking about for the beginning at least. --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" --Sig_/9gmZEMP79_OQ5L8G2lnL+2e Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkfRqM8ACgkQBX6fi0k6KXtMkQCcDXAEFqmIvUfRFe07qaHW7poN vPUAoMJSMaSioGgpnIsfJRnTxQDme9F1 =eugg -----END PGP SIGNATURE----- --Sig_/9gmZEMP79_OQ5L8G2lnL+2e-- From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 7 22:16:35 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D981106566C for ; Fri, 7 Mar 2008 22:16:35 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E756C8FC14 for ; Fri, 7 Mar 2008 22:16:34 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JXkre-0005Mh-Hq for freebsd-emulation@freebsd.org; Fri, 07 Mar 2008 22:16:30 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 22:16:30 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2008 22:16:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Marcin Cieslak Date: Fri, 07 Mar 2008 23:16:13 +0100 Lines: 24 Message-ID: <47D1BEAD.2020407@system.pl> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> <20080307184427.5a005ef9@it.buh.tecnik93.com> <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080228 SeaMonkey/1.1.8 In-Reply-To: <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> Sender: news Cc: freebsd-database@freebsd.org, freebsd-isp@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2008 22:16:35 -0000 Adrian Penisoara wrote: > 2). Usually everything comes down to business cases and business > opportunities. So I think we will need to demonstrate a large userbase in > order to get attention. I think we should be happy if an Oracle XE FreeBSD > package will make it onto the downloads page in the first place. I can give you one business case: During election observation mission in 2007 an Oracle XE installation I've had (just for test) on my FreeBSD notebook saved my (election) day and allowed me to analyze and verify election results - and this is a Big Thing(tm). > 3) Oracle EE / SE editions are indeed the big guns on the enterprise > database market, but until there are some more steps. And Oracle does not > use a packaging format for these, OUI (Oracle Universal Installer) is the > designated tool to use. OUI is difficult to run, it's usually easier to setup a database without it. Fortunately XE does not need one at all. There are scripts out there that perform database creation end-to-end and I think they should be included in the port. --Marcin From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 03:48:59 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 278301065673 for ; Sat, 8 Mar 2008 03:48:59 +0000 (UTC) (envelope-from carpetsmoker@phong.rwxrwxrwx.net) Received: from phong.rwxrwxrwx.net (rwxrwxrwx.net [82.93.23.199]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9348FC13 for ; Sat, 8 Mar 2008 03:48:58 +0000 (UTC) (envelope-from carpetsmoker@phong.rwxrwxrwx.net) Received: from phong.rwxrwxrwx.net (localhost [127.0.0.1]) by phong.rwxrwxrwx.net (8.14.2/8.14.2) with ESMTP id m283S27E019094 for ; Sat, 8 Mar 2008 04:28:03 +0100 (CET) (envelope-from carpetsmoker@phong.rwxrwxrwx.net) Received: (from carpetsmoker@localhost) by phong.rwxrwxrwx.net (8.14.2/8.14.2/Submit) id m283S1JU019093 for freebsd-emulation@FreeBSD.org; Sat, 8 Mar 2008 04:28:01 +0100 (CET) (envelope-from carpetsmoker) Date: Sat, 8 Mar 2008 04:28:01 +0100 From: Martin Tournoij To: freebsd-emulation@FreeBSD.org Message-ID: <20080308032801.GA5350@phong.rwxrwxrwx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: devel/linux-sdl12 - Downgrade to 1.2.9? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 03:48:59 -0000 I just came across a problem with sdl version 1.2.10 and newer, the function 'X11_KeyToUnicode' was removed in this version, unfortunately there are still applications which use this function, most notably all the games based on the torque game engine (http://garagegames.com). Since both torque and the sdl port are binary, it may be a good idea to downgrade to 1.2.9, 1.2.10 offers some minor improvements/bugfixes but nothing critical IMO. (http://libsdl.org/release/changes.html) Regards, Martin Tournoij From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 06:24:56 2008 Return-Path: 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 D0947106566C for ; Sat, 8 Mar 2008 06:24:56 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (pukruppa.net [213.146.114.24]) by mx1.freebsd.org (Postfix) with ESMTP id 33AFB8FC14 for ; Sat, 8 Mar 2008 06:24:55 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.2/8.14.2) with ESMTP id m285pU8c028061 for ; Sat, 8 Mar 2008 06:51:30 +0100 (CET) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.2/8.14.2/Submit) with ESMTP id m285pUaS028058 for ; Sat, 8 Mar 2008 06:51:30 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Sat, 8 Mar 2008 06:51:30 +0100 (CET) From: Peter Ulrich Kruppa To: emulation@freebsd.org Message-ID: <20080308054515.V19713@pukruppa.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 06:24:56 -0000 Hi, I am afraid I need some help to set up networking for qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . The only hint for FreeBSD 7.0 I found was http://people.freebsd.org/~maho/qemu/qemu.html It seems I don't need to kldload bridge, and don't need to set any sysctl variables anymore (right?). I just did (all as root) # ifconfig tap create # ifconfig bridge create # ifconfig bridge0 addm tap0 addm nfe0 up and get # ifconfig -a [...] tap0: flags=8902 metric 0 mtu 1500 ether 00:bd:63:44:71:00 bridge0: flags=8843 metric 0 mtu 1500 ether 9e:2e:9a:d5:cf:09 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: nfe0 flags=143 member: tap0 flags=143 As /etc/qemu-ifup (Permissions 755) I use #!bin/sh ifconfig ${1} 0.0.0.0 Then I try to # qemu Win2k.img -net nic -net tap /etc/qemu-ifup: could not launch network script Could not initialize device 'tap' Next thing I tried was # qemu Win2k.img -net nic -net tap,fd=0 Now qemu will start (and a lot of strange symbols are running across my terminal) but I can't ping anything. >From Qemu Monitor I get: (qemu) info network vlan0 devices: tap: fd=0 ne2000 pci macaddr=52:54:00:12:34:56 Big thanks for your help, Uli. ------------------------------------- Peter Ulrich Kruppa Wuppertal Germany From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 09:29:40 2008 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B132D1065670 for ; Sat, 8 Mar 2008 09:29:40 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.freebsd.org (Postfix) with ESMTP id 668228FC13 for ; Sat, 8 Mar 2008 09:29:40 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from [89.182.244.4] (helo=medusa.sysfault.org) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JXvN3-0001n9-Vc for freebsd-emulation@FreeBSD.org; Sat, 08 Mar 2008 10:29:38 +0100 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JXvNz-0006V5-Ct for freebsd-emulation@FreeBSD.org; Sat, 08 Mar 2008 10:30:35 +0100 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.2/8.14.2/Submit) id m289UZsh024990 for freebsd-emulation@FreeBSD.org; Sat, 8 Mar 2008 10:30:35 +0100 (CET) (envelope-from marcus) Date: Sat, 8 Mar 2008 10:30:34 +0100 From: Marcus von Appen To: freebsd-emulation@FreeBSD.org Message-ID: <20080308093034.GA1065@medusa.sysfault.org> Mail-Followup-To: freebsd-emulation@FreeBSD.org References: <20080308032801.GA5350@phong.rwxrwxrwx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20080308032801.GA5350@phong.rwxrwxrwx.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Score: -4.4 (----) X-Df-Sender: 936934 Cc: Subject: Re: devel/linux-sdl12 - Downgrade to 1.2.9? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 09:29:40 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On, Sat Mar 08, 2008, Martin Tournoij wrote: > I just came across a problem with sdl version 1.2.10 and newer, the > function 'X11_KeyToUnicode' was removed in this version, unfortunately > there are still applications which use this function, most notably > all the games based on the torque game engine (http://garagegames.com). >=20 > Since both torque and the sdl port are binary, it may be a good idea > to downgrade to 1.2.9, 1.2.10 offers some minor improvements/bugfixes > but nothing critical IMO. (http://libsdl.org/release/changes.html) If you can assure that no other game or application from the ports fails, I would say go for it, but the 1.2.10 version had some major changes, so it's possible that another port uses a 1.2.10 specific feature. Usually the most binary ports ship the SDL library they link against, don't those you tested out do that? Regards Marcus --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfSXLoACgkQo/JpszXavhzKTACfX358MxlkTZmOuraAvqmHT6Fk HswAn1+V879OkDIh/0pwBzGwQDThcoQt =uqtL -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 11:09:42 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CFE11065676 for ; Sat, 8 Mar 2008 11:09:42 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC548FC24 for ; Sat, 8 Mar 2008 11:09:42 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 25so916663wfa.7 for ; Sat, 08 Mar 2008 03:09:41 -0800 (PST) Received: by 10.142.201.3 with SMTP id y3mr1251859wff.1.1204974581801; Sat, 08 Mar 2008 03:09:41 -0800 (PST) Received: by 10.143.37.8 with HTTP; Sat, 8 Mar 2008 03:09:41 -0800 (PST) Message-ID: <78cb3d3f0803080309q311301dm3baf6bad2a70b0ac@mail.gmail.com> Date: Sat, 8 Mar 2008 13:09:41 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: "Marcin Cieslak" In-Reply-To: <47D1BEAD.2020407@system.pl> MIME-Version: 1.0 References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> <20080307184427.5a005ef9@it.buh.tecnik93.com> <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> <47D1BEAD.2020407@system.pl> X-Google-Sender-Auth: 04378e06ffdb484e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-database@freebsd.org, freebsd-isp@freebsd.org, freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 11:09:43 -0000 Hi, On Sat, Mar 8, 2008 at 12:16 AM, Marcin Cieslak wrote: > Adrian Penisoara wrote: > > 2). Usually everything comes down to business cases and business > > opportunities. So I think we will need to demonstrate a large userbase > in > > order to get attention. I think we should be happy if an Oracle XE > FreeBSD > > package will make it onto the downloads page in the first place. > > I can give you one business case: > > During election observation mission in 2007 an Oracle XE installation > I've had (just for test) on my FreeBSD notebook saved my (election) day > and allowed me to analyze and verify election results - and this is a > Big Thing(tm). Well, this sort of stories really ought to be told and heard around. Have you considered writing a short story or even a news article on this topic (I guess there are good places where you could submit it) ? > > > > 3) Oracle EE / SE editions are indeed the big guns on the enterprise > > database market, but until there are some more steps. And Oracle does > not > > use a packaging format for these, OUI (Oracle Universal Installer) is > the > > designated tool to use. > > OUI is difficult to run, it's usually easier to setup a database without > it. Fortunately XE does not need one at all. There are scripts out there > that perform database creation end-to-end and I think they should be > included in the port. > > Right. I will be extracting the RPM specs file to form the package installation script. I'm not sure whether the debian scripts have something better. Regards, Adrian Penisoara ROFUG / EnterpriseBSD From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 11:35:38 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4BE3106566C for ; Sat, 8 Mar 2008 11:35:38 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 779D28FC26 for ; Sat, 8 Mar 2008 11:35:38 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost ([69.203.87.53]) by hrndva-omta05.mail.rr.com with ESMTP id <20080308113537.HVLO2919.hrndva-omta05.mail.rr.com@localhost>; Sat, 8 Mar 2008 11:35:37 +0000 Date: Sat, 8 Mar 2008 06:35:37 -0500 From: Scott Robbins To: freebsd-emulation@freebsd.org, emulation@freebsd.org Message-ID: <20080308113537.GA25773@mail.scottro.net> Mail-Followup-To: freebsd-emulation@freebsd.org, emulation@freebsd.org References: <20080308054515.V19713@pukruppa.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080308054515.V19713@pukruppa.net> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 11:35:38 -0000 On Sat, Mar 08, 2008 at 06:51:30AM +0100, Peter Ulrich Kruppa wrote: > > I am afraid I need some help to set up networking for > qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . I did a howto on this awhile back. However, these days, I don't use qemu too much, so I'm no longer sure how much of it is still applicable. Therefore, untested for months, but it's actually mentioned in the pkg-message for qemu. http://forums.bsdnexus.com/viewtopic.php?id=1563 It's untested for some time, but back when 7.0 was CURRENT, it worked like a charm, thanks to the help of some folks on this list (who are thanked in the howto.) > > As /etc/qemu-ifup (Permissions 755) I use > #!bin/sh > ifconfig ${1} 0.0.0.0 > Even with 755 permissions, I don't know if it would work, since it's doing ifconfig which will require root privilege. Use sudo in the ifconfig part. Anyway, take a look at the howto and see if it helps. Work these days takes me away from FreeBSD, so I reiterate, it hasn't been tested for some time, but I believe it's more current than the link you mention. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: You read my diary? That is not OK. A diary is like a person's most private possession. You don't even know what I was writing about. Hunk can mean a lot of things, bad things. And, and when I said his eyes were penetrating, I meant bulging. Angel: Buffy... Buffy: A doesn't even stand for Angel for that matter. It stand for Achmed, a charming foreign exchange student. And that whole fantasy part has nothing to even do with you, at all... Angel: Your mother moved your diary when she came in to straighten up. I watched her from the closet. I didn't read it, I swear. Buffy: Oh. From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 11:50:48 2008 Return-Path: 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 476871065674 for ; Sat, 8 Mar 2008 11:50:48 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 0CC908FC14 for ; Sat, 8 Mar 2008 11:50:47 +0000 (UTC) (envelope-from scottro@nyc.rr.com) Received: from localhost ([69.203.87.53]) by hrndva-omta05.mail.rr.com with ESMTP id <20080308113537.HVLO2919.hrndva-omta05.mail.rr.com@localhost>; Sat, 8 Mar 2008 11:35:37 +0000 Date: Sat, 8 Mar 2008 06:35:37 -0500 From: Scott Robbins To: freebsd-emulation@freebsd.org, emulation@freebsd.org Message-ID: <20080308113537.GA25773@mail.scottro.net> Mail-Followup-To: freebsd-emulation@freebsd.org, emulation@freebsd.org References: <20080308054515.V19713@pukruppa.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080308054515.V19713@pukruppa.net> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 11:50:48 -0000 On Sat, Mar 08, 2008 at 06:51:30AM +0100, Peter Ulrich Kruppa wrote: > > I am afraid I need some help to set up networking for > qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . I did a howto on this awhile back. However, these days, I don't use qemu too much, so I'm no longer sure how much of it is still applicable. Therefore, untested for months, but it's actually mentioned in the pkg-message for qemu. http://forums.bsdnexus.com/viewtopic.php?id=1563 It's untested for some time, but back when 7.0 was CURRENT, it worked like a charm, thanks to the help of some folks on this list (who are thanked in the howto.) > > As /etc/qemu-ifup (Permissions 755) I use > #!bin/sh > ifconfig ${1} 0.0.0.0 > Even with 755 permissions, I don't know if it would work, since it's doing ifconfig which will require root privilege. Use sudo in the ifconfig part. Anyway, take a look at the howto and see if it helps. Work these days takes me away from FreeBSD, so I reiterate, it hasn't been tested for some time, but I believe it's more current than the link you mention. -- Scott Robbins PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 Buffy: You read my diary? That is not OK. A diary is like a person's most private possession. You don't even know what I was writing about. Hunk can mean a lot of things, bad things. And, and when I said his eyes were penetrating, I meant bulging. Angel: Buffy... Buffy: A doesn't even stand for Angel for that matter. It stand for Achmed, a charming foreign exchange student. And that whole fantasy part has nothing to even do with you, at all... Angel: Your mother moved your diary when she came in to straighten up. I watched her from the closet. I didn't read it, I swear. Buffy: Oh. From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 13:35:06 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D215106566B for ; Sat, 8 Mar 2008 13:35:06 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id D5C978FC1D for ; Sat, 8 Mar 2008 13:35:05 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JXzCY-00022Q-KI for freebsd-emulation@freebsd.org; Sat, 08 Mar 2008 13:35:02 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 13:35:02 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Mar 2008 13:35:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Marcin Cieslak Date: Sat, 08 Mar 2008 14:33:01 +0100 Lines: 29 Message-ID: <47D2958D.4040707@system.pl> References: <78cb3d3f0803070636l38ca7683t24235efd8f989c67@mail.gmail.com> <20080307161415.g9vgql0xcscgkkco@webmail.leidinger.net> <20080307184427.5a005ef9@it.buh.tecnik93.com> <78cb3d3f0803071122s74ef2075p8b5f761dd5e8b0ad@mail.gmail.com> <47D1BEAD.2020407@system.pl> <78cb3d3f0803080309q311301dm3baf6bad2a70b0ac@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.12) Gecko/20080228 SeaMonkey/1.1.8 In-Reply-To: <78cb3d3f0803080309q311301dm3baf6bad2a70b0ac@mail.gmail.com> Sender: news Cc: freebsd-database@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Preparing an Oracle Database XE port/package -- any tips ? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 13:35:06 -0000 Adrian Penisoara wrote: > Hi, (dropping -isp) >> During election observation mission in 2007 an Oracle XE installation >> I've had (just for test) on my FreeBSD notebook saved my (election) day >> and allowed me to analyze and verify election results - and this is a >> Big Thing(tm). > > > Well, this sort of stories really ought to be told and heard around. Have > you considered writing a short story or even a news article on this topic (I > guess there are good places where you could submit it) ? This is not always easy. You need to observe state secrets of a host country plus some special requirements in a highly political environment. I will try my best anyway. > Right. I will be extracting the RPM specs file to form the package > installation script. > I'm not sure whether the debian scripts have something better. Go for install.sh on the http://wiki.bsdportal.ru/doc:oraclexe_on_freebsd instead. Worked for me like a charm. (The kernel patches mentioned in the article are already incorporated). --Marcin From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 13:38:45 2008 Return-Path: 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 AC5AA1065676 for ; Sat, 8 Mar 2008 13:38:45 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (pukruppa.net [213.146.114.24]) by mx1.freebsd.org (Postfix) with ESMTP id 0DF8A8FC14 for ; Sat, 8 Mar 2008 13:38:44 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.2/8.14.2) with ESMTP id m28DdEOW002500; Sat, 8 Mar 2008 14:39:14 +0100 (CET) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.2/8.14.2/Submit) with ESMTP id m28DdDt1002497; Sat, 8 Mar 2008 14:39:14 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Sat, 8 Mar 2008 14:39:13 +0100 (CET) From: Peter Ulrich Kruppa To: Scott Robbins In-Reply-To: <20080308113537.GA25773@mail.scottro.net> Message-ID: <20080308143231.U2007@pukruppa.net> References: <20080308054515.V19713@pukruppa.net> <20080308113537.GA25773@mail.scottro.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 13:38:45 -0000 On Sat, 8 Mar 2008, Scott Robbins wrote: > On Sat, Mar 08, 2008 at 06:51:30AM +0100, Peter Ulrich Kruppa wrote: > >> >> I am afraid I need some help to set up networking for >> qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . > > I did a howto on this awhile back. However, these days, I don't use > qemu too much, so I'm no longer sure how much of it is still applicable. > > Therefore, untested for months, but it's actually mentioned in the > pkg-message for qemu. > > http://forums.bsdnexus.com/viewtopic.php?id=1563 > > It's untested for some time, but back when 7.0 was CURRENT, it worked > like a charm, thanks to the help of some folks on this list (who are > thanked in the howto.) Thanks a lot, but I still have got the same problems - and you are right, last summer, or so, everything worked like a charm, but now it doesn't anymore. So I still need advice for (today's) 7.0-STABLE :( > >> As /etc/qemu-ifup (Permissions 755) I use >> #!bin/sh >> ifconfig ${1} 0.0.0.0 >> > Even with 755 permissions, I don't know if it would work, since it's > doing ifconfig which will require root privilege. Use sudo in the > ifconfig part. I am doing all this as root. Greetings, Uli. ------------------------------------- Peter Ulrich Kruppa Wuppertal Germany From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 13:52:35 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8B93106566C for ; Sat, 8 Mar 2008 13:52:35 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (pukruppa.net [213.146.114.24]) by mx1.freebsd.org (Postfix) with ESMTP id 0D8768FC18 for ; Sat, 8 Mar 2008 13:52:34 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.2/8.14.2) with ESMTP id m28DdEOW002500; Sat, 8 Mar 2008 14:39:14 +0100 (CET) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.2/8.14.2/Submit) with ESMTP id m28DdDt1002497; Sat, 8 Mar 2008 14:39:14 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Sat, 8 Mar 2008 14:39:13 +0100 (CET) From: Peter Ulrich Kruppa To: Scott Robbins In-Reply-To: <20080308113537.GA25773@mail.scottro.net> Message-ID: <20080308143231.U2007@pukruppa.net> References: <20080308054515.V19713@pukruppa.net> <20080308113537.GA25773@mail.scottro.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: emulation@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 13:52:35 -0000 On Sat, 8 Mar 2008, Scott Robbins wrote: > On Sat, Mar 08, 2008 at 06:51:30AM +0100, Peter Ulrich Kruppa wrote: > >> >> I am afraid I need some help to set up networking for >> qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . > > I did a howto on this awhile back. However, these days, I don't use > qemu too much, so I'm no longer sure how much of it is still applicable. > > Therefore, untested for months, but it's actually mentioned in the > pkg-message for qemu. > > http://forums.bsdnexus.com/viewtopic.php?id=1563 > > It's untested for some time, but back when 7.0 was CURRENT, it worked > like a charm, thanks to the help of some folks on this list (who are > thanked in the howto.) Thanks a lot, but I still have got the same problems - and you are right, last summer, or so, everything worked like a charm, but now it doesn't anymore. So I still need advice for (today's) 7.0-STABLE :( > >> As /etc/qemu-ifup (Permissions 755) I use >> #!bin/sh >> ifconfig ${1} 0.0.0.0 >> > Even with 755 permissions, I don't know if it would work, since it's > doing ifconfig which will require root privilege. Use sudo in the > ifconfig part. I am doing all this as root. Greetings, Uli. ------------------------------------- Peter Ulrich Kruppa Wuppertal Germany From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 19:51:13 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 599221065672 for ; Sat, 8 Mar 2008 19:51:13 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id D09398FC29 for ; Sat, 8 Mar 2008 19:51:12 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 73617297867; Sat, 8 Mar 2008 20:51:10 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m28Jlknu041682; Sat, 8 Mar 2008 20:47:46 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m28JljAR041681; Sat, 8 Mar 2008 20:47:45 +0100 (CET) (envelope-from nox) Date: Sat, 8 Mar 2008 20:47:45 +0100 (CET) From: Juergen Lock Message-Id: <200803081947.m28JljAR041681@saturn.kn-bremen.de> To: ulrich@pukruppa.net X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <20080308143231.U2007@pukruppa.net> References: <20080308054515.V19713@pukruppa.net> <20080308113537.GA25773@mail.scottro.net> Organization: home Cc: freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 19:51:13 -0000 In article <20080308143231.U2007@pukruppa.net> you write: >On Sat, 8 Mar 2008, Scott Robbins wrote: > >> On Sat, Mar 08, 2008 at 06:51:30AM +0100, Peter Ulrich Kruppa wrote: >> >>> >>> I am afraid I need some help to set up networking for >>> qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . >> >> I did a howto on this awhile back. However, these days, I don't use >> qemu too much, so I'm no longer sure how much of it is still applicable. >> >> Therefore, untested for months, but it's actually mentioned in the >> pkg-message for qemu. >> >> http://forums.bsdnexus.com/viewtopic.php?id=1563 >> >> It's untested for some time, but back when 7.0 was CURRENT, it worked >> like a charm, thanks to the help of some folks on this list (who are >> thanked in the howto.) >Thanks a lot, but I still have got the same problems - and you >are right, last summer, or so, everything worked like a charm, >but now it doesn't anymore. > >So I still need advice for (today's) 7.0-STABLE :( > > >> > >>> As /etc/qemu-ifup (Permissions 755) I use >>> #!bin/sh >>> ifconfig ${1} 0.0.0.0 >>> >> Even with 755 permissions, I don't know if it would work, since it's >> doing ifconfig which will require root privilege. Use sudo in the >> ifconfig part. >I am doing all this as root. Ok since I now also have a RELENG_7_0 box I just tested this, and ended up doing the following (a little different than in the howto since I didn't want to mess with sudo): 1. Preparation: I added perm tap0 0660 to /etc/devfs.conf (my user is in wheel, if yours isnt maybe do own tap0 john:john like in the howto) 2. after that, or later after reboot, as root: kldload aio kqemu if_bridge if_tap sysctl net.link.tap.up_on_open=1 sysctl net.link.tap.user_open=1 /etc/rc.d/devfs restart touch /dev/tap0 ifconfig bridge0 create ifconfig bridge0 addm em0 ifconfig bridge0 addm tap0 ifconfig bridge0 up (as you can see that box' physical nic is an em(4), use whatever yours is) 3. now start qemu as user: qemu-system-x86_64 -m 256 -cdrom 7.0-RELEASE-amd64-livefs.iso -net nic -net tap,ifname=tap0,script=/usr/bin/true -boot d (I also used -curses but thats only in the qemu-devel update atm that I posted about on -emulation. 32 bit qemu with a 32 bit guest should work as well of course, actually if you don't use the qemu-devel update 64 bit FreeBSD 7.0 guests probably won't work, they need the files/patch-cpu-exec.c in the update. Oh and I used an UP kernel on the host...) 4. now to test networking in the guest (as this is the FreeBSD livefs iso, enter fixit via fixit->cdrom in sysinstall after cancelling the keymap selection menu:) ifconfig ed0 [if you want to use this for real you probably would use another one of the emulated nics, i.e. -net nic,model=i82557b or the new e1000 in the qemu-devel update since they should perform better, but for testing the default ne2kpci is enough] route add default ln -s /dist/usr/bin /usr [the above is needed in fixit for scp to work, I never can remember my dns IPs...] scp nox@:/etc/resolv.conf /etc fetch http://freebsd.org and that leaves the guest with a html file called freebsd.org . Obviously, since I'm on a lan using private IPs here the fetch needs nat enabled (and not firewalled) for the IP I gave to the guest, the same is true if your host isn't on a lan but is using public IP(s) and has no unused public IP available that you could use for the guest. But that's basic networking 101 that I guess most ppl here already know, :) if you simply remember that the guest will act just like another host on the network you brigde tap0 with... HTH, Juergen From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 22:32:56 2008 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 759201065672; Sat, 8 Mar 2008 22:32:56 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4C7F88FC1B; Sat, 8 Mar 2008 22:32:56 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (edwin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m28MWugm073532; Sat, 8 Mar 2008 22:32:56 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m28MWu63073528; Sat, 8 Mar 2008 22:32:56 GMT (envelope-from edwin) Date: Sat, 8 Mar 2008 22:32:56 GMT Message-Id: <200803082232.m28MWu63073528@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-emulation@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/121494: emulators/linux_base-fc4 missing /usr/lib/librt.so.1 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 22:32:56 -0000 Synopsis: emulators/linux_base-fc4 missing /usr/lib/librt.so.1 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-emulation Responsible-Changed-By: edwin Responsible-Changed-When: Sat Mar 8 22:32:55 UTC 2008 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=121494 From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 22:39:27 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 035E8106566B for ; Sat, 8 Mar 2008 22:39:27 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (1-1-1-13a.mal.sth.bostream.se [82.182.84.27]) by mx1.freebsd.org (Postfix) with ESMTP id 5488E8FC1C for ; Sat, 8 Mar 2008 22:39:26 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (localhost [127.0.0.1]) by pluto.hedeland.org (8.13.6/8.13.1) with ESMTP id m28M5O9M061935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Mar 2008 23:05:24 +0100 (CET) (envelope-from per@pluto.hedeland.org) Received: (from per@localhost) by pluto.hedeland.org (8.13.6/8.13.1/Submit) id m28M5NTM061934; Sat, 8 Mar 2008 23:05:23 +0100 (CET) (envelope-from per) Date: Sat, 8 Mar 2008 23:05:23 +0100 (CET) From: Per Hedeland Message-Id: <200803082205.m28M5NTM061934@pluto.hedeland.org> To: ulrich@pukruppa.net In-Reply-To: <20080308054515.V19713@pukruppa.net> X-Scanned-By: MIMEDefang 2.48 on 10.1.1.1 Cc: freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 22:39:27 -0000 Peter Ulrich Kruppa wrote: > >I am afraid I need some help to set up networking for > qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . Last week I carried my qemu setup unchanged over from FreeBSD 6.2 / qemu-0.9.0_3 to FreeBSD 7.0-RELEASE / qemu-0.9.1_1 - worked like a charm. Most of my setup is in Scott's howto I think, though it's kind of sprinkled about.:-) >It seems I don't need to kldload bridge, and don't need to set >any sysctl variables anymore (right?). Whether there's a change in that respect depends on where you're coming from - there was no *need* to set sysctl variables in 6.x either, but some of them are very useful (not the bridge ones though). My setup is a bit more dynamic/flexible/complex than what you describe, allowing for multiple qemu instances getting started/stopped and/or running simultaneously - you may not want to copy it if you're only ever going to run one instance. >As /etc/qemu-ifup (Permissions 755) I use > #!bin/sh > ifconfig ${1} 0.0.0.0 > >Then I try to > # qemu Win2k.img -net nic -net tap > /etc/qemu-ifup: could not launch network script > Could not initialize device 'tap' AFAIR, that basically means that your qemu-ifup script exited with a non-zero exit code. I don't know why it would, but you can start by making sure that it doesn't by putting 'exit 0' at the end. This may of course mask an actual problem, but at least it should allow qemu to start, so you can check if there *is* an actual problem. I would also recommend that you do just 'ifconfig ${1} up' instead of 'ifconfig ${1} 0.0.0.0' - shouldn't be much difference, but I have some vague memory of the all-zero address causing problems in some case, and there's certainly nothing good that can come out of it. >Next thing I tried was > # qemu Win2k.img -net nic -net tap,fd=0 >Now qemu will start (and a lot of strange symbols are running >across my terminal) but I can't ping anything. Well, you just need to copy those symbols and paste them into your ethernet interface.:-) Seriously, I believe that command tells qemu to use stdin/stdout for networking - don't do that. And of course, before you can ping anything, networking must be properly set up (whether manually or via DHCP) in the guest OS, as described in other posts. --Per Hedeland