There was an error while loading. Please reload this page.
1 parent 39363e6 commit 2450118Copy full SHA for 2450118
1 file changed
src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs
@@ -346,6 +346,15 @@ impl HyperlightVm {
346
self.vm.set_debug_regs(&CommonDebugRegs::default())?;
347
self.vm.reset_xsave()?;
348
349
+ self.apply_sregs(cr3, sregs)
350
+ }
351
+
352
+ /// Apply special registers and mark TLB for flush.
353
+ pub(crate) fn apply_sregs(
354
+ &mut self,
355
+ cr3: u64,
356
+ sregs: &CommonSpecialRegisters,
357
+ ) -> std::result::Result<(), RegisterError> {
358
// Restore the full special registers from snapshot, but update CR3
359
// to point to the new (relocated) page tables
360
let mut sregs = *sregs;
0 commit comments