You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 359169f
Browse filesBrowse the repository at this point in the historyBrowse files
virt: say what an STI shadow restored as a MOV SS shadow loses
The comments and the Guide of the previous commits said that an STI
shadow that restores as a MOV SS shadow only delays an NMI or a debug
exception by an instruction, and that a restore that is given no kind
sets a MOV SS shadow (microsoft/nvx#1369). Both overstate it. A MOV SS
shadow makes an Intel CPU skip an instruction breakpoint at the next
instruction, as KVM models in kvm_is_code_breakpoint_inhibited, so a
build that predates the kind, which restores the STI shadow of a later
snapshot as a MOV SS shadow, holds an NMI off for one more instruction
and loses that breakpoint, where it would not delay it. And a restore
sets a MOV SS shadow only for a state that has a shadow: a state that
has none gets none.
The doc comments of InterruptShadowKind, of
Activity::interrupt_shadow_kind, and of shadow::to_kvm, the comments of
the two contract tests of KVM, and the Guide's snapshot format and
snapshots pages now say so. No code, saved field, or version changes,
and the choice stands: where a state holds a shadow and no kind, the MOV
SS shadow is still the one to set, since the reverse would let an NMI or
a debug exception split the MOV SS from the instruction that follows it,
which sets the stack pointer.
cargo xtask fmt passes, as does cargo doc for virt and virt_kvm with
warnings denied; the change touches comments and Markdown only.
Refs microsoft/nvx#1369
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments