vmd(8): fix vm send/receive due to invalid hva's.
authordv <dv@openbsd.org>
Sat, 22 Apr 2023 19:47:35 +0000 (19:47 +0000)
committerdv <dv@openbsd.org>
Sat, 22 Apr 2023 19:47:35 +0000 (19:47 +0000)
commit68534885df588d7cfe8322bf0cba289cb6284425
tree7bf86fc83e97450de1258a28996634b5c74bb580
parentd8562aa01a5b36eb1d4c58e5253ff65b579a2d21
vmd(8): fix vm send/receive due to invalid hva's.

Moving some of the virtio devices to zero-copy approaches required
tracking the host-side virtual address for the gpa of virtqueues.
Upon a send/receive they are invalid as the restoring system will
most likely use a different address space layout.

Recompute the hva's on receive and NULL them on send.

ok mlarkin@
usr.sbin/vmd/virtio.c