hypervisor: Fix MSHV set_xsave API call

MSHV set_xsave got changed to fix the Snapshot and restore issue.
This patch fixes the API call.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2021-05-18 12:31:19 -07:00
committed by Rob Bradford
parent 280bef834b
commit c7b794a7c5
2 changed files with 3 additions and 3 deletions

View File

@@ -473,7 +473,7 @@ impl cpu::Vcpu for MshvVcpu {
///
fn set_xsave(&self, xsave: &Xsave) -> cpu::Result<()> {
self.fd
.set_xsave(*xsave)
.set_xsave(xsave)
.map_err(|e| cpu::HypervisorCpuError::SetXsaveState(e.into()))
}
///