Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/vmx: Don't spuriously crash the domain when INIT is received
In VMX operation, the handling of INIT IPIs is changed. Instead of the CPU resetting, the next VMEntry fails with EXIT_REASON_INIT. From the TXT spec, the intent of this behaviour is so that an entity which cares can scrub secrets from RAM before participating in an orderly shutdown. Right now, Xen's behaviour is that when an INIT arrives, the HVM VM which schedules next is killed (citing an unknown VMExit), *and* we ignore the INIT and continue blindly onwards anyway. This patch addresses only the first of these two problems by ignoring the INIT and continuing without crashing the VM in question. The second wants addressing too, just as soon as we've figured out something better to do... Discovered as collateral damage from when an AP triple faults on S3 resume on Intel TigerLake platforms. Link: QubesOS/qubes-issues#7283 Signed-off-by: Andrew Cooper <[email protected]> Reviewed-by: Kevin Tian <[email protected]> master commit: b1f1127 master date: 2023-03-24 22:49:58 +0000
- Loading branch information