|
@@ -1194,7 +1194,7 @@ static int shutdown_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
|
|
|
static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
|
|
|
{
|
|
|
u32 io_info = svm->vmcb->control.exit_info_1; /* address size bug? */
|
|
|
- int size, down, in, string, rep;
|
|
|
+ int size, in, string;
|
|
|
unsigned port;
|
|
|
|
|
|
++svm->vcpu.stat.io_exits;
|
|
@@ -1213,8 +1213,6 @@ static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
|
|
|
in = (io_info & SVM_IOIO_TYPE_MASK) != 0;
|
|
|
port = io_info >> 16;
|
|
|
size = (io_info & SVM_IOIO_SIZE_MASK) >> SVM_IOIO_SIZE_SHIFT;
|
|
|
- rep = (io_info & SVM_IOIO_REP_MASK) != 0;
|
|
|
- down = (svm->vmcb->save.rflags & X86_EFLAGS_DF) != 0;
|
|
|
|
|
|
skip_emulated_instruction(&svm->vcpu);
|
|
|
return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port);
|