Page MenuHomeFreeBSD

bhyve snapshot fix for AMD CPUs
ClosedPublic

Authored by mihaiburcea15_gmail.com on Dec 14 2021, 9:22 AM.
Tags
Referenced Files
Unknown Object (File)
Thu, Jun 26, 4:17 AM
Unknown Object (File)
Sun, Jun 22, 2:39 PM
Unknown Object (File)
Sat, Jun 21, 12:22 AM
Unknown Object (File)
Fri, Jun 20, 9:35 AM
Unknown Object (File)
Thu, Jun 19, 4:59 PM
Unknown Object (File)
Wed, Jun 18, 2:20 AM
Unknown Object (File)
Jun 2 2025, 3:57 PM
Unknown Object (File)
Jun 1 2025, 3:24 AM

Details

Summary

This patch fixes the AMD implementation for snapshotting.
It removes unnecessary vmcb fields that should not be saved and duplicates.

This patch was applied on top of 0630a06b2ab013ba6a877871eafde1889251ebdb.

Test Plan

The patch was tested on AMD Ryzen 1600 AF.
For testing, we started a virtual machine that executed an infinite loop and saved its state using bhyvectl --suspend=file.ckp --vm=guest_vm.
Then, we restored its state using bhyve ... -r file.ckp guest_vm.

More information about save and restore can be found at this link: https://github.com/FreeBSD-UPB/freebsd-src/wiki/Save-and-Restore-a-virtual-machine-using-bhyve

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable