diff --git a/shvvp.c b/shvvp.c index dd1f43b..cf45729 100644 --- a/shvvp.c +++ b/shvvp.c @@ -131,6 +131,13 @@ ShvVpInitialize ( // ShvCaptureSpecialRegisters(&Data->SpecialRegisters); + // + // Make sure the AC flags in the EFLAGS is cleared before capturing the + // register. This flag is checked as an indicator of whether the VM is + // launched below. + // + __writeeflags(__readeflags() & ~EFLAGS_ALIGN_CHECK); + // // Then, capture the entire register state. We will need this, as once we // launch the VM, it will begin execution at the defined guest instruction