diff options
author | 2017-09-11 23:32:34 +0000 | |
---|---|---|
committer | 2017-09-11 23:32:34 +0000 | |
commit | 74d54943e39426985d27959c486c3212eafe65e1 (patch) | |
tree | d8bc2a5683f2affce63a3351a6b42317502ec85c /lib/libc | |
parent | bring SET, CLR, and ISSET macros in (diff) | |
download | wireguard-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