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, Dec 5, 6:34 AM
Unknown Object (File)
Tue, Nov 26, 12:08 AM
Unknown Object (File)
Sun, Nov 24, 4:04 PM
Unknown Object (File)
Fri, Nov 22, 12:34 PM
Unknown Object (File)
Thu, Nov 14, 1:49 PM
Unknown Object (File)
Tue, Nov 12, 5:30 PM
Unknown Object (File)
Tue, Nov 12, 5:23 PM
Unknown Object (File)
Tue, Nov 12, 4:55 PM

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