]> 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)
commit16822ce7b8412e37ae5b63de0391e3d53c88f771
treec6061aadf5a188296a95c3d7edad8e6edafaa7c5
parent89defb00b5f3bdce1ed06423f3ae77b56800791a
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