]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Factor out x86 instruction emulation with decoding
authorWei Huang <wei.huang2@amd.com>
Tue, 26 Jan 2021 08:18:28 +0000 (03:18 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:27 +0000 (05:27 -0500)
commitb0e4289dad91a3d878ece63cd4dc43216a62999f
treec6061aadf5a188296a95c3d7edad8e6edafaa7c5
parentd68e5ad4c20a9cc6cd541dcdc57620975d147e8a
KVM: x86: Factor out x86 instruction emulation with decoding

Move the instruction decode part out of x86_emulate_instruction() for it
to be used in other places. Also kvm_clear_exception_queue() is moved
inside the if-statement as it doesn't apply when KVM are coming back from
userspace.

Co-developed-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Bandan Das <bsd@redhat.com>
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Message-Id: <20210126081831.570253-2-wei.huang2@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h