]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Kill off ctxt->ud
authorWanpeng Li <wanpengli@tencent.com>
Fri, 28 May 2021 00:01:37 +0000 (17:01 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 May 2021 16:59:10 +0000 (12:59 -0400)
commit45404b6b265da463d3430f38949c4439586a293b
tree57863c62bef22ec2fc79fcd97a99165fe374cd41
parent3814c4c703b330dfbcace9fc509f33e7c3f0d233
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>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/x86.c