summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-09-11 23:32:34 +0000
committerdlg <dlg@openbsd.org>2017-09-11 23:32:34 +0000
commit74d54943e39426985d27959c486c3212eafe65e1 (patch)
treed8bc2a5683f2affce63a3351a6b42317502ec85c /lib/libc
parentbring SET, CLR, and ISSET macros in (diff)
downloadwireguard-openbsd-74d54943e39426985d27959c486c3212eafe65e1.tar.xz
wireguard-openbsd-74d54943e39426985d27959c486c3212eafe65e1.zip
add functions to provide direct access to guest memory as vmd addresses
iovec_mem() populates an iovec array based on guest physical addresses. this allows the use of things like readv and writev for moving data between the guest and a disk image file without having to bounce the memory. vaddr_mem() provides a vmd usable pointer based on a guests physical address. this makes it possible to directly reference things like virtio rings without having to bounce that memory either. however, it assumes that a contiguous range of guest physical memory will sit in a single vm memory range. mlarkin@ says this is right. ok mlarkin@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions