Commit 6c41468
KVM: x86: Clear "has_error_code", not "error_code", for RM exception injection
When injecting an exception into a vCPU in Real Mode, suppress the error
code by clearing the flag that tracks whether the error code is valid, not
by clearing the error code itself. The "typo" was introduced by recent
fix for SVM's funky Paged Real Mode.
Opportunistically hoist the logic above the tracepoint so that the trace
is coherent with respect to what is actually injected (this was also the
behavior prior to the buggy commit).
Fixes: b97f074 ("KVM: x86: determine if an exception has an error code only when injecting it.")
Cc: [email protected]
Cc: Maxim Levitsky <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>1 parent 0dc9022 commit 6c41468
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9908 | 9908 | | |
9909 | 9909 | | |
9910 | 9910 | | |
| 9911 | + | |
| 9912 | + | |
| 9913 | + | |
| 9914 | + | |
| 9915 | + | |
| 9916 | + | |
| 9917 | + | |
| 9918 | + | |
| 9919 | + | |
9911 | 9920 | | |
9912 | 9921 | | |
9913 | 9922 | | |
9914 | 9923 | | |
9915 | 9924 | | |
9916 | | - | |
9917 | | - | |
9918 | 9925 | | |
9919 | 9926 | | |
9920 | 9927 | | |
| |||
0 commit comments