aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-05-25 07:38:15 -0400
committerAvi Kivity <avi@qumranet.com>2008-07-20 05:42:25 -0400
commit50d40d7fb9b09e68a657c68837fcfa067b70cc42 (patch)
tree9bdd7737be1170ea5443d17e2ec7f075f7200079
parent7cc8883074b040aa8c1ebd3a17463b0ea3a9ef16 (diff)
KVM: Remove unnecessary ->decache_regs() call
Since we aren't modifying any register, there's no need to decache the register state. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index fd03b4465bcc..5f00c60f0aff 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2297,7 +2297,6 @@ int kvm_emulate_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in,
2297 2297
2298 kvm_x86_ops->cache_regs(vcpu); 2298 kvm_x86_ops->cache_regs(vcpu);
2299 memcpy(vcpu->arch.pio_data, &vcpu->arch.regs[VCPU_REGS_RAX], 4); 2299 memcpy(vcpu->arch.pio_data, &vcpu->arch.regs[VCPU_REGS_RAX], 4);
2300 kvm_x86_ops->decache_regs(vcpu);
2301 2300
2302 kvm_x86_ops->skip_emulated_instruction(vcpu); 2301 kvm_x86_ops->skip_emulated_instruction(vcpu);
2303 2302