summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorJan Kiszka2009-02-08 13:28:15 +0100
committerAvi Kivity2009-03-24 10:03:08 +0100
commit34c33d163fe509da8414a736c6328855f8c164e5 (patch)
tree673921f5ce66b19e6e0eecf12e9ec94c69acf8e1 /arch/x86/kvm/vmx.c
parentKVM: Add FFXSR support (diff)
downloadkernel-qcow2-linux-34c33d163fe509da8414a736c6328855f8c164e5.tar.gz
kernel-qcow2-linux-34c33d163fe509da8414a736c6328855f8c164e5.tar.xz
kernel-qcow2-linux-34c33d163fe509da8414a736c6328855f8c164e5.zip
KVM: Drop unused evaluations from string pio handlers
Looks like neither the direction nor the rep prefix are used anymore. Drop related evaluations from SVM's and VMX's I/O exit handlers. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index df454de8acfa..509b35305402 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2698,7 +2698,7 @@ static int handle_triple_fault(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
static int handle_io(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
{
unsigned long exit_qualification;
- int size, down, in, string, rep;
+ int size, in, string;
unsigned port;
++vcpu->stat.io_exits;
@@ -2714,8 +2714,6 @@ static int handle_io(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
size = (exit_qualification & 7) + 1;
in = (exit_qualification & 8) != 0;
- down = (vmcs_readl(GUEST_RFLAGS) & X86_EFLAGS_DF) != 0;
- rep = (exit_qualification & 32) != 0;
port = exit_qualification >> 16;
skip_emulated_instruction(vcpu);