who(1) diff to show more of hostname

2010-11-09 Thread Otto Moerbeek
Hi, Make who(1) a tiny bit smarter and show more of the host part. Max linewidth is 80. -Otto Index: who.c === RCS file: /cvs/src/usr.bin/who/who.c,v retrieving revision 1.18 diff -u -p -r1.18 who.c --- who.c 27 Oct 20

Re: SCHED_ASSERT_UNLOCKED is considered harmful in the _kernel_lock()

2010-11-09 Thread Philip Guenther
On Mon, Nov 8, 2010 at 2:59 AM, Mark Kettenis wrote: > If you're considering changing the way we allocate the PCB, we should > look into moving it off the stack altogether and allocate them from a > pool. That would make life simpler on hppa, since pools are mapped > 1:1 which means issues with n

Re: amd64 segment cleanup: part 3

2010-11-09 Thread Philip Guenther
On Tue, Nov 9, 2010 at 10:41 AM, Mike Belopuhov wrote: > On Sun, Oct 31, 2010 at 17:10 -0700, Philip Guenther wrote: ... >> The TSS also contains the pointer to the stack used for double faults. >> Previously, this was placed one page above each process's PCB. Rather >> than change that on each c

Prevent recursion in acpibat(4)

2010-11-09 Thread Mark Kettenis
As can be seen from PR 6508, the current implementation of the acpibat(4) notify stuff causes infinite recursion. The AML for that particular machine will execute a Notify(\_SC.BAT, 0x81) from the _BST() method. Since we always execute both _BST() and _BIF() from the \_SC.BAT notify handler it's

Re: amd64 segment cleanup: part 3

2010-11-09 Thread Mike Belopuhov
On Sun, Oct 31, 2010 at 17:10 -0700, Philip Guenther wrote: > Okay, enough cleanup; time to simplify the TSS handling by moving from > TSS-per-process to TSS-per-CPU. This eliminates the need to ever change > GDT entries after startup and the associated ~4k process limit. > > Where do we place

Re: mmap()'ing non-vnode files

2010-11-09 Thread Mike Belopuhov
On Tue, Nov 9, 2010 at 2:22 PM, Wouter Coene wrote: > Hi, > > I'm looking into porting Linux's Kernel Virtual Machine (KVM) host to > OpenBSD. Under Linux, KVM and the user-space virtual machine share a > datastructure containing the state of the virtual CPU. This structure is > owned by the kerne

mmap()'ing non-vnode files

2010-11-09 Thread Wouter Coene
Hi, I'm looking into porting Linux's Kernel Virtual Machine (KVM) host to OpenBSD. Under Linux, KVM and the user-space virtual machine share a datastructure containing the state of the virtual CPU. This structure is owned by the kernel, and accessed from userland by mmap()'ing the file handle refe

Re: waitpid not returning 0 when WNOHANG specified ?

2010-11-09 Thread Christiano F. Haesbaert
On 9 November 2010 06:54, Otto Moerbeek wrote: > On Tue, Nov 09, 2010 at 08:17:59AM +0100, Markus Bergkvist wrote: > >> On 11/09/10 03:27, Philip Guenther wrote: >> >On Mon, Nov 8, 2010 at 4:10 PM, Christiano F. Haesbaert >> > wrote: >> >>I must be doing something really silly but it seems waitpi

amd64: Phenom 9x00's TLB errata warning

2010-11-09 Thread SASANO Takayoshi
Hello, Phenom 9500 has TLB errata and this should be workarounded by BIOS. But some BIOS do nothing by default, I think the warning is needed. Here is the patch, please review. -- amd64errata.c - applied following NetBSD's src/sys/arch/x86/x86/errata.c fix revision 1.8, 1.13, 1

Re: amd64: Phenom 9x00's TLB errata warning

2010-11-09 Thread SASANO Takayoshi
Oops, try again... At Tue, 09 Nov 2010 20:48:37 +0900, SASANO Takayoshi wrote: > > Hello, > > Phenom 9500 has TLB errata and this should be workarounded by BIOS. > But some BIOS do nothing by default, I think the warning is needed. > > Here is the patch, please review. > > -- > amd64errata.c >

Re: waitpid not returning 0 when WNOHANG specified ?

2010-11-09 Thread Otto Moerbeek
On Tue, Nov 09, 2010 at 08:17:59AM +0100, Markus Bergkvist wrote: > On 11/09/10 03:27, Philip Guenther wrote: > >On Mon, Nov 8, 2010 at 4:10 PM, Christiano F. Haesbaert > > wrote: > >>I must be doing something really silly but it seems waitpid ends up > >>returning -1 if WNOHANG is specified and