HomeFreeBSD

vmm: move bumping VMEXIT_USERSPACE stat to the right place

Description

vmm: move bumping VMEXIT_USERSPACE stat to the right place

Statistic for "number of vm exits handled in userspace" should be
increased in vm_run() instead of vmx_run() because in some cases
vm_run() doesn't exit to userspace and keeps entering the guest.

Also svm_run's implementation even wrongly misses that stat.

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

Details

Provenance
gusev.vitaliy_gmail.comAuthored on Jun 9 2022, 12:57 PM
markjCommitted on Jun 9 2022, 12:57 PM
Reviewer
markj
Differential Revision
D35350: vmm: move bumping VMEXIT_USERSPACE stat to the right place
Parents
rG30031172534c: iommu_gas: Change find_space lower search order
Branches
Unknown
Tags
Unknown