KVM: Call x86_decode_insn() only when needed
authorLaurent Vivier <Laurent.Vivier@bull.net>
Tue, 18 Sep 2007 09:27:37 +0000 (11:27 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:47 +0000 (17:52 +0200)
commit3427318fd2244737a466a06a93c5fe579852f871
tree7c6760dbbdd067498c470e6e4f711e5baeef491c
parent1be3aa47182e94944e57b176a5c4ee4e74f1ce33
KVM: Call x86_decode_insn() only when needed

Move emulate_ctxt to kvm_vcpu to keep emulate context when we exit from kvm
module. Call x86_decode_insn() only when needed. Modify x86_emulate_insn() to
not modify the context if it must be re-entered.

Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/svm.c
drivers/kvm/vmx.c
drivers/kvm/x86_emulate.c