HomeFreeBSD

vmm: Add vm_gpa_hold_global wrapper function.

Description

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

(cherry picked from commit 28b561ad9d03617418aed33b9b8c1311e940f0c8)

Details

Provenance
jhbAuthored on Nov 18 2022, 6:01 PM
Reviewer
corvink
Differential Revision
D37160: vmm: Add vm_gpa_hold_global wrapper function.
Parents
rGb558a25c103a: vmm: Add _KERNEL guards for io headers shared with userspace.
Branches
Unknown
Tags
Unknown