Commit b35491e
KVM: X86: Kill off ctxt->ud
ctxt->ud is consumed only by x86_decode_insn(), we can kill it off by
passing emulation_type to x86_decode_insn() and dropping ctxt->ud
altogether. Tracking that info in ctxt for literally one call is silly.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <1622160097-37633-2-git-send-email-wanpengli@tencent.com>1 parent da6393c commit b35491e
3 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5111 | 5111 | | |
5112 | 5112 | | |
5113 | 5113 | | |
5114 | | - | |
| 5114 | + | |
5115 | 5115 | | |
5116 | 5116 | | |
5117 | 5117 | | |
| |||
5322 | 5322 | | |
5323 | 5323 | | |
5324 | 5324 | | |
5325 | | - | |
| 5325 | + | |
| 5326 | + | |
5326 | 5327 | | |
5327 | 5328 | | |
5328 | 5329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
| |||
491 | 490 | | |
492 | 491 | | |
493 | 492 | | |
494 | | - | |
| 493 | + | |
495 | 494 | | |
496 | 495 | | |
497 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7568 | 7568 | | |
7569 | 7569 | | |
7570 | 7570 | | |
7571 | | - | |
7572 | | - | |
7573 | | - | |
| 7571 | + | |
7574 | 7572 | | |
7575 | 7573 | | |
7576 | 7574 | | |
| |||
0 commit comments