Removing the kernel timezone: config(8): drop timezone support

2019-08-07 Thread Scott Cheloha
Drop config(8) support for getting/setting the kernel timezone. ok? Index: cmd.c === RCS file: /cvs/src/usr.sbin/config/cmd.c,v retrieving revision 1.20 diff -u -p -r1.20 cmd.c --- cmd.c 23 Nov 2013 17:38:15 - 1.20

amd64 Qemu Machine type and vmx(4) driver stability on QEMU Q35 machine vs QEMU i440fx machines

2019-08-07 Thread Tom Smyth
Hello I repeated the tests with the vmx(4) driver with the two Qemu machine types i440fx and Q35 the vmx(4) driver when attached to the i440fx machine performed much more reliably compared with the vmx(4) driver on Q35 gave timeout errors on the console and didnt function well enough to perform

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Theo de Raadt
Ted Unangst wrote: > Scott Cheloha wrote: > > It doesn't mean anything. I guess I'm still gunshy about removing > > options and breaking things after the lock(1) thing. > > If the default behavior changes, and the option is now meaningless, but still > results in the *same* behavior, keep the

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Ted Unangst
Scott Cheloha wrote: > - while ((ch = getopt(argc, argv, "ad:f:jr:ut:z:")) != -1) > + while ((ch = getopt(argc, argv, "af:jr:uz:")) != -1) > switch(ch) { > case 'a': > slidetime = 1; > break; > - case 'd':

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Ted Unangst
Scott Cheloha wrote: > It doesn't mean anything. I guess I'm still gunshy about removing > options and breaking things after the lock(1) thing. If the default behavior changes, and the option is now meaningless, but still results in the *same* behavior, keep the option. The user still obtains

amd64 Qemu Machine type and re(4) driver stability on QEMU Q35 machine vs QEMU i440fx machines

2019-08-07 Thread Tom Smyth
Hello I was continuing some network performance tests and I tried out the Realtek RTL8139 (100Mb/s) card to compare how it behaved when running a re(4) Q35 Qemu vm running OpenBSD amd64 as opposed to re(4) card attached to a a i440fx Qemu Vm basically a re(4) card did not function when attached

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Scott Cheloha
On Wed, Aug 07, 2019 at 06:08:45PM -0600, Theo de Raadt wrote: > Scott Cheloha wrote: > > > On Wed, Aug 07, 2019 at 05:52:54PM -0600, Theo de Raadt wrote: > > > Scott Cheloha wrote: > > > > > > > - while ((ch = getopt(argc, argv, "ad:f:jr:ut:z:")) != -1) > > > > + while ((ch =

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Theo de Raadt
Scott Cheloha wrote: > On Wed, Aug 07, 2019 at 05:52:54PM -0600, Theo de Raadt wrote: > > Scott Cheloha wrote: > > > > > - while ((ch = getopt(argc, argv, "ad:f:jr:ut:z:")) != -1) > > > + while ((ch = getopt(argc, argv, "af:jr:uz:")) != -1) > > > > You remove d and t, so: > > > > > +

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Scott Cheloha
On Wed, Aug 07, 2019 at 05:52:54PM -0600, Theo de Raadt wrote: > Scott Cheloha wrote: > > > - while ((ch = getopt(argc, argv, "ad:f:jr:ut:z:")) != -1) > > + while ((ch = getopt(argc, argv, "af:jr:uz:")) != -1) > > You remove d and t, so: > > > + case 'd': /* compat:

Re: Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Theo de Raadt
Scott Cheloha wrote: > - while ((ch = getopt(argc, argv, "ad:f:jr:ut:z:")) != -1) > + while ((ch = getopt(argc, argv, "af:jr:uz:")) != -1) You remove d and t, so: > + case 'd': /* compat: daylight saving time */ > break; Can't be

amd64 Qemu Machine type and em(4) driver stability on QEMU Q35 machine vs QEMU i440fx machines

2019-08-07 Thread Tom Smyth
I have been continuing to do some (rudimentary) driver tests for performance If one wants to use PCI-E device passthrough they have to use Qemu machine type Q35 pc-q35-4.0 Standard PC (Q35 + ICH9, 2009) while most Qemu installations would use the following machine type pc-i440fx-4.0

Removing the kernel timezone: date(1): drop -d dst and -t minutes_west

2019-08-07 Thread Scott Cheloha
This is the first in a series of patches that will remove timezone support from the kernel. Here, remove date(1) support for modifying the kernel's timezone. The flags are kept in the code so that scripts don't break immediately. ok? Index: date.c

Re: TSC synchronization on MP machines

2019-08-07 Thread Hrvoje Popovski
On 6.8.2019. 22:29, Paul Irofti wrote: > Hi, > > Here is a fourth diff addressing all the issues so far, that have been > mainly pointed out by kettenis@, thanks! > > Changes: > - stop resetting the observed drift as it does not affect tsc > re-initialization on resume, thus

Re: TSC synchronization on MP machines

2019-08-07 Thread Mark Kettenis
> Date: Tue, 6 Aug 2019 23:29:30 +0300 > From: Paul Irofti > > Hi, > > Here is a fourth diff addressing all the issues so far, that have been > mainly pointed out by kettenis@, thanks! > > Changes: > - stop resetting the observed drift as it does not affect tsc >

Re: TSC synchronization on MP machines

2019-08-07 Thread Claudio Jeker
On Tue, Aug 06, 2019 at 11:29:30PM +0300, Paul Irofti wrote: > Hi, > > Here is a fourth diff addressing all the issues so far, that have been > mainly pointed out by kettenis@, thanks! > > Changes: > - stop resetting the observed drift as it does not affect tsc > re-initialization

Re: apmd C getopt flag unused?

2019-08-07 Thread Solene Rapenne
On Wed, Aug 07, 2019 at 12:40:03PM +0200, Claudio Jeker wrote: > On Wed, Aug 07, 2019 at 12:33:58PM +0200, Solene Rapenne wrote: > > I found case 'C' in getopt in amd which is not documented and seems to > > be an alias for -A. > > > > Ok for removing? > > Please don't, I think many people still

Re: apmd C getopt flag unused?

2019-08-07 Thread Claudio Jeker
On Wed, Aug 07, 2019 at 12:33:58PM +0200, Solene Rapenne wrote: > I found case 'C' in getopt in amd which is not documented and seems to > be an alias for -A. > > Ok for removing? Please don't, I think many people still use the old apmd -C (at least I do have it on a few systems). Also you

Re: apmd C getopt flag unused?

2019-08-07 Thread Solene Rapenne
On Wed, Aug 07, 2019 at 12:33:58PM +0200, Solene Rapenne wrote: > I found case 'C' in getopt in amd which is not documented and seems to > be an alias for -A. > > Ok for removing? > > Index: apmd.c > === > RCS file:

apmd C getopt flag unused?

2019-08-07 Thread Solene Rapenne
I found case 'C' in getopt in amd which is not documented and seems to be an alias for -A. Ok for removing? Index: apmd.c === RCS file: /data/cvs/src/usr.sbin/apmd/apmd.c,v retrieving revision 1.84 diff -u -p -r1.84 apmd.c ---

unveil(2) missing codepath on dhcpd(8)

2019-08-07 Thread Ricardo Mestre
Hi, One missing piece when I added pledge(2) to dhcpd(8) was in the code path when it's invoked with either -A/-C/-L, which at the time I left alone due to some forbidden ioctls by pledge(2). Now we have unveil(2) and this path can be further restricted by using it instead of chroot(2) since