From: Avi Kivity Date: Sun, 25 May 2008 11:38:15 +0000 (+0300) Subject: KVM: Remove unnecessary ->decache_regs() call X-Git-Tag: v2.6.27-rc1~968^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=50d40d7fb9b09e68a657c68837fcfa067b70cc42;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index fd03b4465bc..5f00c60f0af 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, kvm_x86_ops->cache_regs(vcpu); memcpy(vcpu->arch.pio_data, &vcpu->arch.regs[VCPU_REGS_RAX], 4); - kvm_x86_ops->decache_regs(vcpu); kvm_x86_ops->skip_emulated_instruction(vcpu);