Re: ldom.conf.5: clarify vcpu strides

2020-11-04 Thread Klemens Nanni
On Wed, Nov 04, 2020 at 10:44:52PM +0100, Mark Kettenis wrote: > Yeah, that reads better. On request though. Can you pick a character > name from: > > https://www.openbsd.org/lyrics.html#38 > > as the name of the domain? Beluge is the bad guy, so this probably > should be Marlus. Sure! Final

Re: ldom.conf.5: clarify vcpu strides

2020-11-04 Thread Mark Kettenis
> Date: Wed, 4 Nov 2020 22:38:13 +0100 > From: Klemens Nanni > > On Wed, Nov 04, 2020 at 09:46:39PM +0100, Mark Kettenis wrote: > > stride is not a factor, so your description makes no sense to me. > ldomctl/config.c uses it as factor: > > SIMPLEQ_FOREACH(domain, _list, entry) { >

Re: ldom.conf.5: clarify vcpu strides

2020-11-04 Thread Klemens Nanni
On Wed, Nov 04, 2020 at 09:46:39PM +0100, Mark Kettenis wrote: > stride is not a factor, so your description makes no sense to me. ldomctl/config.c uses it as factor: SIMPLEQ_FOREACH(domain, _list, entry) { if (strcmp(domain->name, "primary") == 0) {

Re: ldom.conf.5: clarify vcpu strides

2020-11-04 Thread Mark Kettenis
> Date: Wed, 4 Nov 2020 21:36:17 +0100 > From: Klemens Nanni > > On Mon, Sep 14, 2020 at 07:52:34PM +0200, Klemens Nanni wrote: > > On Wed, Sep 02, 2020 at 04:58:39PM +0200, Stefan Sperling wrote: > > > I would like to suggest an example for the EXAMPLES section which > > > illustrates how a

Re: [PATCH] tcpdump: Fix missing argument from icmp_print call in print-skip.c

2020-11-04 Thread Klemens Nanni
On Tue, Nov 03, 2020 at 01:15:49PM +0100, Theo Buehler wrote: > There is quite a bit more that is wrong with print-skip.c than just > that (try to add it to the Makefile and compile it). It was unhooked > from the build in 1996. > > Shouldn't it rather be sent to the attic? OK kn

Re: ldom.conf.5: clarify vcpu strides

2020-11-04 Thread Klemens Nanni
On Mon, Sep 14, 2020 at 07:52:34PM +0200, Klemens Nanni wrote: > On Wed, Sep 02, 2020 at 04:58:39PM +0200, Stefan Sperling wrote: > > I would like to suggest an example for the EXAMPLES section which > > illustrates how a suitable stride factor can be determined (divide the > > number of desired

Re: unwind(8): query_imsg2str

2020-11-04 Thread Klemens Nanni
On Wed, Nov 04, 2020 at 04:06:13PM +0100, Florian Obser wrote: > Introduce query_imsg2str() for the printing "qname class type". OK kn > @@ -2116,3 +2107,18 @@ resolvers_to_restart(struct uw_conf *oconf, struct > uw_conf *nconf) > } > return restart; > } > + > +const char* I'd put a

Re: [PATCH] ifconfig: keep track of allowed ips pointer correctly

2020-11-04 Thread Klemens Nanni
On Tue, Oct 27, 2020 at 06:16:08PM +0100, Jason A. Donenfeld wrote: > Somebody on IRC mentioned that using ifconfig to set wgallowedips wasn't > working on macppc. I don't have a macppc to test this on, but it seems > like the code is assuming that the two values printed out by this test > program

unwind(8): handle large answers

2020-11-04 Thread Florian Obser
Handle DNS answers that are larger than the maximum imsg size by splitting them up. This might fix an issue Leo reported to me in private where unwind would exit with this in syslog: unwind[13752]: fatal in frontend: expected IMSG_ANSWER but got HEADER unwind[45337]: resolver exiting

unwind(8): query_imsg2str

2020-11-04 Thread Florian Obser
Introduce query_imsg2str() for the printing "qname class type". OK? diff --git resolver.c resolver.c index dea78ca2fb3..a1e18f9d130 100644 --- resolver.c +++ resolver.c @@ -194,6 +194,7 @@ void decay_latest_histograms(int, short, void *); int

Prevent race in single_thread_set()

2020-11-04 Thread Martin Pieuchot
Here's a 3rd approach to solve the TOCTOU race in single_thread_set(). The issue being that the lock serializing access to `ps_single' is not held when calling single_thread_check(). The approach below is controversial because it extends the scope of the SCHED_LOCK(). On the other hand, the two

uvm_fault: is there an anon?

2020-11-04 Thread Martin Pieuchot
Diff below introduces a helper that looks for existing mapping. The value returned by this lookup function determines if there's an anon at the faulting address which tells us if we're dealign with a fault of type 1 or 2. This small refactoring is part of the current work to separate the code

Turn SCHED_LOCK() into a mutex

2020-11-04 Thread Martin Pieuchot
Diff below removes the recursive attribute of the SCHED_LOCK() by turning it into a IPL_NONE mutex. I'm not intending to commit it yet as it raises multiple questions, see below. This work has been started by art@ more than a decade ago and I'm willing to finish it as I believe it's the easiest

[PATCH] .apple kbd layout for sf and sg

2020-11-04 Thread Mathias Schmocker
Hello, this diff with current allows setting a useable kbd sf.apple and sg.apple (and the nodead variant) on a Macbook 1.1 (wscons) (alternative was xorg.conf macbook79 with ch layout and fr variant, but without the beautiful spleen consolefont...) Index: makemap.awk