Edit

IABSD.fr/src/usr.sbin/vmd

Branch :

  • Show log

    Commit

  • Author : bluhm
    Date : 2026-05-31 20:28:51
    Hash : 54735d0f
    Message : Fix vmd(8) emulation for Linux guests. The memory safety checks introduced in previous commit were too strict and broke Linux guests running on top of vmd. Adapt the checks to the variation of virtio 1.x that vmd implements. virtio 1.x doesn't need page alignment. The used area offset needs to just be 4 byte aligned for some sanity, but not really critical. The descriptor table, available area, and used areas must be in guest memory ranges and not spill out allowing guest access to host memory by using hvaddr_mem() to check. from dv@; OK mlarkin@; tested by jmatthew@ and Remi Bougard