]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 368004: Pull the check for VM ownership into ppt_find().
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 14 Dec 2020 20:48:59 +0000 (20:48 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 14 Dec 2020 20:48:59 +0000 (20:48 +0000)
commit2426d0d1188220a8f4a7e6846e033e2ddf4fccf4
treeb7c05c0d00f2a8cab9b1b7d978a165d2255de7ae
parentb17a444a2988346c239df4b3c66a550b5b7e2118
MFC 368004: Pull the check for VM ownership into ppt_find().

This reduces some code duplication.  One behavior change is that
ppt_assign_device() will now only succeed if the device is unowned.
Previously, a device could be assigned to the same VM multiple times,
but each time it was assigned, the device's state was reset.
sys/amd64/vmm/io/ppt.c