]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vmm: Add vm_gpa_hold_global wrapper function.
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 18:01:57 +0000 (10:01 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 18 Nov 2022 18:25:36 +0000 (10:25 -0800)
commit28b561ad9d03617418aed33b9b8c1311e940f0c8
tree8e2d1910009526ec717d76f0741d1faf1e3b8486
parent0f435e647645afc68076ff5b005f9366c44413eb
vmm: Add vm_gpa_hold_global wrapper function.

This handles the case that guest pages are being held not on behalf of
a virtual CPU but globally.  Previously this was handled by passing a
vcpuid of -1 to vm_gpa_hold, but that will not work in the future when
vm_gpa_hold is changed to accept a struct vcpu pointer.

Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D37160
sys/amd64/include/vmm.h
sys/amd64/vmm/vmm.c