HomeFreeBSD

vmm: Correctly suspend and resume the vmm driver.

Description

vmm: Correctly suspend and resume the vmm driver.

Previously, VMXON would be executed on a resume, contrary to proper
initalization. The contents of MSR_IA32_FEATURE_CONTROL may be lost on
suspension, therefore must be restored. Likewise, the VMX Enable bit may be
cleared upon suspend, requiring it to be re-set.

Concretely disable VMX on suspend, and re-enable it on resume.

Note: any IOMMU context will remain lost for any enabled vmm devices.

Signed-off-by: Joshua Rogers <Joshua@Joshua.Hu>
Reviewed by: jhb,imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1419

Details

Provenance
Joshua Rogers <Joshua@Joshua.Hu>Authored on Sep 11 2024, 5:42 PM
impCommitted on Fri, Nov 29, 9:38 PM
Parents
rGde13eea53e4c: ipfw: Fix comment typos in ipfw struct dyn_data
Branches
Unknown
Tags
Unknown