summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Run "rcctl ls faulty", which is silent when all services work as expected.schwarze2016-01-281-1/+4
| | | | | | Based on an original idea and a different patch from landry@. OK jung@ zhuk@ landry@ krw@ agreed to the general idea
* Correct bit flag tests to work as intended.jsg2016-01-281-3/+3
| | | | ok renato@
* Since we don't allow maps to be created or opened with an invalidkrw2016-01-282-17/+5
| | | | | block0, there is no point in checking later if block0 has magically become invalid.
* Use consistent 'return' idiom -- no parenthesis since that was the stylekrw2016-01-284-14/+14
| | | | of the existing code.
* Older Xen dom0's don't implement setting version of Grant Table entriesmikeb2016-01-281-12/+1
| | | | | Remove leftover code that was used to set v2 of Grant Table entries. From Nathanael Rensen <nathanael at list ! polymorpheus ! com>, thanks!
* avoid Xr to self;jmc2016-01-281-2/+2
|
* Correct date for Australia Day. From Ian Mcwilliam, ok jmc.dtucker2016-01-281-2/+2
|
* Document the pvbus(4) IOCTL INTERFACE.reyk2016-01-281-6/+79
|
* Simplify the query-chain code now that events are sent through a dedicated loop.eric2016-01-281-118/+66
| | | | ok gilles@ jung@
* more tweaks; ok krwjmc2016-01-281-4/+7
|
* Tweak verbiage for 'r' (reorder) command.krw2016-01-282-5/+6
|
* Make 'r' (reorder, a.k.a. swap) command work with any two existingkrw2016-01-281-12/+31
| | | | partitions. Do NOT allow partition 1 to be moved!
* Traverse next_by_base when checking maps coverage, not next_on_disk!krw2016-01-271-4/+4
|
* remove v_estr in favor of warn and warnxmartijn2016-01-271-29/+15
| | | | | OK schwarze@, zhuk@ fine with me tb@
* Replace fprintf+exit with errx. No functional changemartijn2016-01-271-10/+6
| | | | | OK zhuk@ and schwarze@ fine with me tb@
* Fix typo in comment. From Chris Bennett, thanks!tb2016-01-271-2/+2
|
* Don't attempt to kill() the constraint in the wrong process. Thereyk2016-01-273-8/+38
| | | | | | | | | | | process management of the contraint processes has been moved from ntp to the parent, for better privsep and pledge, but the ntp process still attempted to kill the constraints on timeout directly. Fix this regression by introducing a new imsg from ntp to the parent and the related logic to kill a constraint at the right place. Reported & tested by bcook@ Ok bcook@
* update ntpd log initialization to work like relayd, fix debug log levelsbcook2016-01-272-8/+13
| | | | ok reyk@
* syncsthen2016-01-271-0/+1
|
* Add /etc/examples/pkg.conf, generated from mirrors.dat over in www/.sthen2016-01-272-2/+133
| | | | Positive feedback and/or OKs from benno millert jcs aja jasper
* Allow pkg.conf's installpath to be set to a bare hostname (no /), whichsthen2016-01-272-6/+9
| | | | | | | implies http://hostname/pub/OpenBSD/[snapshots-or-version]/packages/[arch]. This could be handled at a different location in the code to support PKG_PATH but this approach is pretty simple and I have something else to make use of it. ok espie@ for now.
* No need to copy dmpe_name to a buffer before printing it.krw2016-01-271-10/+3
|
* Clear out some repetitive and pointless verbiage. Shuffle otherkrw2016-01-271-41/+22
| | | | verbiage around to make things clearer.
* fyx typo. s,dynanic,dynamic,gsoares2016-01-271-2/+2
| | | | OK reyk
* Tweak some verbiage.krw2016-01-272-10/+10
|
* make sure to check malloc(3) return pointer against NULL.gsoares2016-01-271-1/+3
| | | | OK krw@
* Tighten up next reference calculation, printing fixesmikeb2016-01-271-11/+11
|
* tweak previous; ok krwjmc2016-01-271-1/+2
|
* Convert min + uiomovei to ulmin + uiomove.stefan2016-01-271-12/+10
| | | | From Martin Natano.
* On-disk partition name/types/processorid may or may not be NULkrw2016-01-273-9/+9
| | | | | terminated after all. So add an extra byte for a NUL in the in-memory struct's.
* - sort optionsjmc2016-01-272-7/+7
| | | | - add -q to usage()
* Remove some lies and pointless verbiage. Tweak HISTORY.krw2016-01-271-28/+9
|
* missing fclose(3). (silence cppcheck warnings).gsoares2016-01-271-0/+2
| | | | OK mmcc@
* Reimplement Grant Table metadata linking and enable dynamic allocationmikeb2016-01-272-96/+159
| | | | | | | | Instead of pre-allocating maximum number of Grant Table frames allotted by the hypervisor we switch over to allocating them dynamically when the need arises. At the same time we no longer link metadata entries representing individual Grant Table frames as a list and use a table instead to speed up reference lookups when establishing and removing mappings.
* xen_bus_dma_init turned out to be unnecessarymikeb2016-01-271-9/+2
|
* shorten a few long linesmikeb2016-01-271-4/+4
|
* We do not support logical_block != physical_block. Remove logical_blockkrw2016-01-274-34/+16
| | | | | | | | | | field and left over code that checks for logical != physical. Removes confusion with dmpe fields lblock_start and lblocks, which have nothing to do with block sizes! lblock_start is the block offset within the partition where the data actually starts. and lblocks is the number of blocks of data within the partition. Both are in units of *physical blocks*, a.k.a. disk sectors.
* appease mandoc lint, no difference in outputjasper2016-01-271-2/+1
| | | | ok reyk@
* Two more for the attic.krw2016-01-272-354/+0
|
* Check block 0 signature, physical block size and physical block count whenkrw2016-01-276-27/+68
| | | | | | | | | | reading partition map. Check for unmapped physical blocks and overlapping partitions when reading partition map. No need for duplicate checks in validate_map(), so remove validate.c from build and 'v' command from code and docs.
* - optarg and optind are declared by unistd.h, so remove them...gsoares2016-01-271-8/+9
| | | | | | | | | - use strtonum rather than atoi - zap case '?' in getopt(3) switch - use _exit(2) in signal handler - use __progname in usage() instead of hardcoded name OK tb@ mestre@
* Include sys/ioccom.h since _IO* is used.ajacoutot2016-01-271-1/+2
| | | | | | | | | Based on the number and type of other system headers which pull in ioccom.h, and the fact that videoio.h isn't involved in any massive chain of includes in the kernel, I think it's reasonable and makes porting simpler. -- sthen@ from Brad very reasonable feinerer@, ok sthen@
* Check imsg data length before use.sunil2016-01-273-3/+12
| | | | Ok jung@ gilles@ eric@
* Use "VIS_SAFE | VIS_CSTYLE" instead of "VIS_OCTAL" as the value canreyk2016-01-271-4/+4
| | | | contain text files with whitespace, newlines and carriage returns.
* Add hostctl(8), a tool to access key-value stores on the host,reyk2016-01-273-0/+353
| | | | | | | | | | | | currently for hypervisor information stores on pvbus(4). As discussed with deraadt@, the generic name is used to potentially extend it for other use cases where the host or machine firmware provides a key-value store, hypervisors or things like openprom. Not enabled yet. OK mikeb@
* Removes the abstraction layer to support multiple executable binaries.mpi2016-01-274-189/+27
| | | | | | | Simplifies the API to manipulate symbols now that all our architectures are ELF. ok tb@
* syncreyk2016-01-274-20/+36
|
* Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.reyk2016-01-273-3/+8
| | | | | | Needed for the key-value interface that has been added to pvbus(4). OK mikeb@
* Add a key-value interface to pvbus(4) that allows to get or set valuesreyk2016-01-279-10/+318
| | | | | | | | | | | | | | in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
* Replace the malloc spinlock with a mutex. This lock is held over system callskettenis2016-01-273-7/+28
| | | | | | | | | | | | | which run for many cycles and may even sleep. This leads to other threads spinning for a long time waiting on the lock. Using a mutex means those threads go to sleep and get woken up when the lock is released, which results in a lot less CPU usage. More work is needed to improve the performance of threaded code that suffers from malloc lock contention, but this diff makes ports like Firefox significantly more usable. Tested by many. ok mpi@, guenther@, tedu@, jca@