Commit c092fc8
committed
KVM: x86: Inhibit code #DBs in MOV-SS shadow for all Intel compat vCPUs
Treat code #DBs as inhibited in MOV/POP-SS shadows for vCPU models that
are Intel compatible, not just strictly vCPUs with vendor==Intel. The
behavior is explicitly called out in the SDM, and thus architectural, i.e.
applies to all CPUs that implement Intel's architecture, and isn't a quirk
that is unique to CPUs manufactured by Intel:
However, if an instruction breakpoint is placed on an instruction located
immediately after a POP SS/MOV SS instruction, the breakpoint will be
suppressed as if EFLAGS.RF were 1.
Applying the behavior strictly to Intel wasn't intentional, KVM simply
didn't have a concept of "Intel compatible" as of commit baf67ca
("KVM: x86: Suppress code #DBs on Intel if MOV/POP SS blocking is active").
Link: https://lore.kernel.org/r/20240405235603.1173076-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 6463e5e commit c092fc8
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9028 | 9028 | | |
9029 | 9029 | | |
9030 | 9030 | | |
9031 | | - | |
9032 | | - | |
9033 | 9031 | | |
9034 | 9032 | | |
9035 | 9033 | | |
9036 | 9034 | | |
9037 | | - | |
9038 | | - | |
9039 | | - | |
| 9035 | + | |
| 9036 | + | |
9040 | 9037 | | |
9041 | | - | |
9042 | | - | |
9043 | | - | |
| 9038 | + | |
| 9039 | + | |
| 9040 | + | |
| 9041 | + | |
9044 | 9042 | | |
9045 | 9043 | | |
9046 | 9044 | | |
| |||
0 commit comments