KVM: x86: remove the dead code of KVM_EXIT_HYPERCALL
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Mon, 28 Nov 2011 12:41:38 +0000 (20:41 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 27 Dec 2011 09:22:07 +0000 (11:22 +0200)
KVM_EXIT_HYPERCALL is not used anymore, so remove the code

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

arch/x86/kvm/x86.c

index 4e533d2..4650531 100644 (file)
@@ -5389,10 +5389,6 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
        if (r <= 0)
                goto out;
 
-       if (kvm_run->exit_reason == KVM_EXIT_HYPERCALL)
-               kvm_register_write(vcpu, VCPU_REGS_RAX,
-                                    kvm_run->hypercall.ret);
-
        r = __vcpu_run(vcpu);
 
 out: