KASSERT() for VOP_*

2020-09-08 Thread Martin Pieuchot
This is mostly the same diff that has been backed out months ago with the VOP_CLOSE() case fixed. VOP_CLOSE() can accept a NULL argument instead of `curproc' when garbage collecting passed FDs. The intent is to stop passing a "struct proc *" when a function applies only to `curproc'. Synchroniza

sigismasked()

2020-09-08 Thread Martin Pieuchot
Simple helper function to centralize the manipulation of `ps_sigignore' and `p_sigmask' in kern/kern_sig.c and later on add the corresponding asserts, ok? Index: kern/kern_sig.c === RCS file: /cvs/src/sys/kern/kern_sig.c,v retrieving

issignal() w/o KERNEL_LOCK()

2020-09-08 Thread Martin Pieuchot
Per-process data structures needed to suspend the execution of threads are since recently protected by the SCHED_LOCK(). So the KERNEL_LOCK() dance inside issignal() is no longer necessary and can be removed, ok? Note that CURSIG() is currently always called with the KERNEL_LOCK() held so the cod

Re: snmpd refactor listen on grammar

2020-09-08 Thread Martijn van Duren
On Tue, 2020-09-08 at 19:33 +0200, Denis Fondras wrote: > On Sun, Sep 06, 2020 at 10:11:02PM +0200, Martijn van Duren wrote: > > Moving towards individual transport mappings, it's becoming more > > convenient to have the protocol directly after the listen on statement. > > This gives me more flexi

Re: [PATCH] Add IOMMU support for Intel VT-d and AMD-Vi

2020-09-08 Thread Jordan Hargrave
Made changes for the iommu_readq -> iommu_read_8 and also now dynamically allocate the hwdte for AMD IOMMU. On Fri, Sep 04, 2020 at 09:17:18PM +0200, Mark Kettenis wrote: > > Date: Fri, 4 Sep 2020 00:50:44 -0500 > > From: Jordan Hargrave > > A few hints below... > > > > > + > > > > +/* Page Ta

PATCH: Add helper vm_find_vcpu function to VMD

2020-09-08 Thread Jordan Hargrave
>From cba617464c71f4d4e4a34728f117ca92145f746f Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Tue, 18 Aug 2020 15:46:36 -0500 Subject: [PATCH 1/4] Add helper vm_find_vcpu function for VMM --- sys/arch/amd64/amd64/vmm.c | 63 -- 1 file changed, 33 inserti

Re: systat: pf: merge NOTES column into NAME

2020-09-08 Thread Klemens Nanni
On Sat, Aug 29, 2020 at 05:13:00PM +0200, Klemens Nanni wrote: > NOTES stays unused unless pf.conf(5) contains `set loginterface ...' in > which case it merely amends what can otherwise be part of the NAME > column. > > Merge the constant NOTES values for conditional counters into their NAME > val

Re: [PATCH] Adding group "video" for /dev/video*

2020-09-08 Thread Stefan Hagen
Stefan Hagen wrote: > Stefan Hagen wrote: > > Using a webcam as user > > > > > > To use the webcam as regular user, you need to change the device > > permissions. Only root is allowed to access video devices by default. > > > > > > One way of allowing your user to access the video devices is to

Re: timeout(9): add clock-based timeouts (attempt 2)

2020-09-08 Thread Mark Kettenis
> Date: Mon, 7 Sep 2020 18:50:44 -0500 > From: Scott Cheloha > > On Sat, Sep 05, 2020 at 01:11:59PM +0200, Mark Kettenis wrote: > > > Date: Fri, 4 Sep 2020 17:55:39 -0500 > > > From: Scott Cheloha > > > > > > On Sat, Jul 25, 2020 at 08:46:08PM -0500, Scott Cheloha wrote: > > > > > > > > [...]

Re: PATCH: Fix PCI Config Space union size on VMM

2020-09-08 Thread Mark Kettenis
> Date: Mon, 7 Sep 2020 17:52:55 -0500 > From: Jordan Hargrave Yes that would be better. The usage of __packed here is questionable, but that is not your fault. ok kettenis@ > Index: pci.h > === > RCS file: /cvs/src/usr.sbin/vmd/p

Re: snmpd refactor listen on grammar

2020-09-08 Thread Denis Fondras
On Sun, Sep 06, 2020 at 10:11:02PM +0200, Martijn van Duren wrote: > Moving towards individual transport mappings, it's becoming more > convenient to have the protocol directly after the listen on statement. > This gives me more flexibility in using mapping-specific APIs, also > when other transpo

Re: [WIP FAQ13] New section for webcam usage

2020-09-08 Thread Stefan Hagen
Laurence Tratt wrote: > On Sun, Sep 06, 2020 at 07:45:32PM +0200, Stefan Hagen wrote: > I have one tangential comment: > > > Using a webcam as user > > > > To use the webcam as regular user, you need to change the device > > permissions. > > This made me wonder if uvideo should have an equivalen

Re: pms(4): fix "pointer skipping" for certain v1 elantech touchpads

2020-09-08 Thread sxvghd
Bump. Anyone? Also sorry for the malformed message, I always default to 80 characters and forgot that this won't do it here. Here's a more readable version: On 2020-09-02 17:43, sxv...@firemail.cc wrote: So, continuing with fixing my netbook, I have another patch which fixes "pointer skipping".

Re: [WIP FAQ13] New section for webcam usage

2020-09-08 Thread Laurence Tratt
On Sun, Sep 06, 2020 at 07:45:32PM +0200, Stefan Hagen wrote: Hello Stefan, Thanks for this! I'll leave others who are more familiar with the website guidelines to comment on your patch, but I hope something like it can go in, as I found it a bit difficult at first to work out how to use webcams