HomeFreeBSD

vmm: Fix compiling error with BHYVE_SNAPSHOT

Description

vmm: Fix compiling error with BHYVE_SNAPSHOT

The return values of copyin() and copyout() must be checked.
vm_snapshot_buf_cmp() is unused by the kernel and was incorrectly
implemented, so just remove it.

Reviewed by: markj
Sponsored by: vStack
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D43754

(cherry picked from commit 7572fe89ada63719b558c6b844e2743cd3ff6b6a)

Details

Provenance
gusev.vitaliy_gmail.comAuthored on Feb 6 2024, 3:36 PM
markjCommitted on Feb 20 2024, 2:21 PM
Reviewer
markj
Differential Revision
D43754: vmm: Fix compiling error with BHYVE_SNAPSHOT
Parents
rG0f0bf1e880c6: sched_setscheduler(2): Change realtime privilege check
Branches
Unknown
Tags
Unknown