Page MenuHomeFreeBSD

bhyve snapshot fix for AMD CPUs
ClosedPublic

Authored by mihaiburcea15_gmail.com on Dec 14 2021, 9:22 AM.
Tags
Referenced Files
F96562710: D33431.id.diff
Wed, Sep 25, 12:26 PM
F96562579: D33431.id107632.diff
Wed, Sep 25, 12:25 PM
F96562575: D33431.id99979.diff
Wed, Sep 25, 12:25 PM
F96559034: D33431.diff
Wed, Sep 25, 12:14 PM
Unknown Object (File)
Wed, Sep 18, 11:31 AM
Unknown Object (File)
Mon, Sep 16, 1:08 PM
Unknown Object (File)
Wed, Sep 11, 7:54 PM
Unknown Object (File)
Wed, Sep 11, 1:49 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