[Differential] D14473: userboot: add callbacks to set unrestricted guest mode
fabian.freyer_physik.tu-berlin.de (Fabian Freyer)
phabric-noreply at FreeBSD.org
Thu Feb 22 17:47:30 UTC 2018
fabian.freyer_physik.tu-berlin.de created this revision.
fabian.freyer_physik.tu-berlin.de added a project: bhyve.
Herald added subscribers: Contributor Reviews (base), imp.
REVISION SUMMARY
The current userboot interface sets this capability using `vm_setup_freebsd_registers_i386` in lib/libvmmapi/libvmmapi_freebsd.c. This patch adds support for loaders to explicitly query and/or set this capability without having to go through the `exec` callback, but set up registers themselves.
This change is backwards-compatible as all new callbacks are added to the end of the callback structure.
TEST PLAN
test with a library implementing `loader_main` and calling these callbacks. Check whether capability is set.
REPOSITORY
rS FreeBSD src repository
REVISION DETAIL
https://reviews.freebsd.org/D14473
AFFECTED FILES
stand/userboot/userboot.h
usr.sbin/bhyveload/bhyveload.c
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: fabian.freyer_physik.tu-berlin.de
Cc: imp, freebsd-virtualization-list, #contributor_reviews_base
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14473.39609.patch
Type: text/x-patch
Size: 2178 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20180222/3af502a2/attachment.bin>
More information about the freebsd-virtualization
mailing list