History log of /freebsd-current/usr.sbin/bhyveload/bhyveload.8
Revision Date Author Comments
# 5df041c4 12-Jan-2024 Kyle Evans <kevans@FreeBSD.org>

bhyveload(8): document some SECURITY CONSIDERATIONS

The situation is improved now that we're running in a sandbox, but there
is still some host machine access that could be concerning depending on
the context. These concerns may be somewhat mitigated by the fact that
the host machine usually provides the loader binary, even when the guest
image is providing the loader scripts -- they only bring the lua
scripts, and they have to be able to execute arbitrary syscalls rather
than the interfaces provided by libsa(3).

Reviewed by: jhb, markj
Differential Revision: https://reviews.freebsd.org/D43299


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 6ee52c65 26-Jun-2016 Roman Bogorodskiy <novel@FreeBSD.org>

bhyve: improve memory size documentation

A couple of minor memory size option related nits:

- use common name 'memsize' (instead of 'max-size' or just 'size')
- bhyve: update usage with memsize unit suffix, drop legacy "MB"
unit
- bhyveload: update usage with memsize unit suffix
- bhyve(8): document default size
- bhyveload(8): use memsize formatting like it's done
in bhyve(8)

Reviewed by: wblock, grehan
Approved by: re (kib), wblock, grehan
Differential Revision: https://reviews.freebsd.org/D6952


# 568e3a8d 26-Feb-2016 Marcel Moolenaar <marcel@FreeBSD.org>

Add option -C to have the guest memory included in core files.
This aids in debugging OS loaders.


# 8c96dcc1 07-Oct-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Add option -l for specifying which OS loader to dlopen(3). By default
this is /boot/userboot.so. This option allows for the development and
use of other OS loaders.


# f429b905 27-Jun-2015 Neel Natu <neel@FreeBSD.org>

Fix issues detected by 'mandoc -Tlint bhyveload.8'

Pointed out by: wblock
Differential Revision: https://reviews.freebsd.org/D2762


# 9b1aa8d6 18-Jun-2015 Neel Natu <neel@FreeBSD.org>

Restructure memory allocation in bhyve to support "devmem".

devmem is used to represent MMIO devices like the boot ROM or a VESA framebuffer
where doing a trap-and-emulate for every access is impractical. devmem is a
hybrid of system memory (sysmem) and emulated device models.

devmem is mapped in the guest address space via nested page tables similar
to sysmem. However the address range where devmem is mapped may be changed
by the guest at runtime (e.g. by reprogramming a PCI BAR). Also devmem is
usually mapped RO or RW as compared to RWX mappings for sysmem.

Each devmem segment is named (e.g. "bootrom") and this name is used to
create a device node for the devmem segment (e.g. /dev/vmm/testvm.bootrom).
The device node supports mmap(2) and this decouples the host mapping of
devmem from its mapping in the guest address space (which can change).

Reviewed by: tychon
Discussed with: grehan
Differential Revision: https://reviews.freebsd.org/D2762
MFC after: 4 weeks


# cde1f5b8 27-Jun-2014 John Baldwin <jhb@FreeBSD.org>

Sort command flags in usage output and the manpages.


# 01c2b8ac 20-Jun-2014 Baptiste Daroussin <bapt@FreeBSD.org>

use .Mt to mark up email addresses consistently (part2)

PR: 191174
Submitted by: Franco Fichtner <franco@lastsummer.de>


# b540294a 27-Jan-2014 Maxim Konovalov <maxim@FreeBSD.org>

o Fix typo, sort .Xrs.

PR: docs/186191
Submitted by: Andrew (typo fix)
MFC after: 1 week


# 0947c55b 02-Dec-2013 Joel Dahl <joel@FreeBSD.org>

mdoc: quote string properly.


# 6380102c 26-Nov-2013 Peter Grehan <grehan@FreeBSD.org>

Allow bhyve and bhyveload to attach to tty devices.

bhyveload: introduce the -c <device> parameter
to select a tty for output (or "stdio")

bhyve: allow the puc and lpc-com backends to
accept a tty in addition to "stdio"

When used in conjunction with the null-modem device,
nmdm(4), this allows attach/detach to the guest console
and multiple concurrent serial ports. kgdb on a serial
port is now functional.

Reviewed by: neel
Requested by: Almost everyone that has used bhyve
MFC after: 10.0


# b6afa84b 16-Oct-2013 Neel Natu <neel@FreeBSD.org>

Add an option to bhyveload(8) that allows setting a loader environment variable
from the command line.

The option syntax is "-e <name=value>". It may be used multiple times to set
multiple environment variables.

Reviewed by: grehan
Requested by: alfred


# 5239e66c 09-Oct-2013 Joel Dahl <joel@FreeBSD.org>

Fix missing .

Approved by: re (blanket)


# 200758f1 08-Oct-2013 Neel Natu <neel@FreeBSD.org>

Parse the memory size parameter using expand_number() to allow specifying
the memory size more intuitively (e.g. 512M, 4G etc).

Submitted by: rodrigc
Reviewed by: grehan
Approved by: re (blanket)


# f11731eb 19-Mar-2013 Joel Dahl <joel@FreeBSD.org>

mdoc: remove superfluous paragraph macro.


# b060ba50 18-Mar-2013 Neel Natu <neel@FreeBSD.org>

Simplify the assignment of memory to virtual machines by requiring a single
command line option "-m <memsize in MB>" to specify the memory size.

Prior to this change the user needed to explicitly specify the amount of
memory allocated below 4G (-m <lowmem>) and the amount above 4G (-M <highmem>).

The "-M" option is no longer supported by 'bhyveload' and 'bhyve'.

The start of the PCI hole is fixed at 3GB and cannot be directly changed
using command line options. However it is still possible to change this in
special circumstances via the 'vm_set_lowmem_limit()' API provided by
libvmmapi.

Submitted by: Dinakar Medavaram (initial version)
Reviewed by: grehan
Obtained from: NetApp


# bf77e2db 19-Jan-2013 Joel Dahl <joel@FreeBSD.org>

Remove EOL whitespace.


# edccda4d 19-Jan-2013 Joel Dahl <joel@FreeBSD.org>

Minor mdoc fixes.


# 83994ddc 07-Jan-2013 Neel Natu <neel@FreeBSD.org>

Add the 'bhyveload(8)' man page.

Obtained from: NetApp
Reviewed by: grehan