diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-04-21 10:45:03 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:47 -0400 |
commit | 1d6ed0cb95a2f0839e1a31f1971dc37cd60c258a (patch) | |
tree | 8c6f9ea81185a8c5c2270ab8ced4e3fcb3b8a752 | |
parent | 1cb948ae86f3d95cce58fac51d00766825f5f783 (diff) |
KVM: Remove inject_pending_vectors() callback
It is the same as inject_pending_irq() for VMX/SVM now.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 | ||||
-rw-r--r-- | arch/x86/kvm/svm.c | 1 | ||||
-rw-r--r-- | arch/x86/kvm/vmx.c | 1 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
4 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index ea3741edbec3..aa5a54eb4da4 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -517,8 +517,6 @@ struct kvm_x86_ops { | |||
517 | void (*queue_exception)(struct kvm_vcpu *vcpu, unsigned nr, | 517 | void (*queue_exception)(struct kvm_vcpu *vcpu, unsigned nr, |
518 | bool has_error_code, u32 error_code); | 518 | bool has_error_code, u32 error_code); |
519 | void (*inject_pending_irq)(struct kvm_vcpu *vcpu, struct kvm_run *run); | 519 | void (*inject_pending_irq)(struct kvm_vcpu *vcpu, struct kvm_run *run); |
520 | void (*inject_pending_vectors)(struct kvm_vcpu *vcpu, | ||
521 | struct kvm_run *run); | ||
522 | int (*interrupt_allowed)(struct kvm_vcpu *vcpu); | 520 | int (*interrupt_allowed)(struct kvm_vcpu *vcpu); |
523 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); | 521 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); |
524 | int (*get_tdp_level)(void); | 522 | int (*get_tdp_level)(void); |
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 8fa5a0ead680..290547537b4d 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -2655,7 +2655,6 @@ static struct kvm_x86_ops svm_x86_ops = { | |||
2655 | .set_irq = svm_set_irq, | 2655 | .set_irq = svm_set_irq, |
2656 | .queue_exception = svm_queue_exception, | 2656 | .queue_exception = svm_queue_exception, |
2657 | .inject_pending_irq = svm_intr_assist, | 2657 | .inject_pending_irq = svm_intr_assist, |
2658 | .inject_pending_vectors = svm_intr_assist, | ||
2659 | .interrupt_allowed = svm_interrupt_allowed, | 2658 | .interrupt_allowed = svm_interrupt_allowed, |
2660 | 2659 | ||
2661 | .set_tss_addr = svm_set_tss_addr, | 2660 | .set_tss_addr = svm_set_tss_addr, |
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 3186fcfcffb5..9162b4cd3410 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -3693,7 +3693,6 @@ static struct kvm_x86_ops vmx_x86_ops = { | |||
3693 | .set_irq = vmx_inject_irq, | 3693 | .set_irq = vmx_inject_irq, |
3694 | .queue_exception = vmx_queue_exception, | 3694 | .queue_exception = vmx_queue_exception, |
3695 | .inject_pending_irq = vmx_intr_assist, | 3695 | .inject_pending_irq = vmx_intr_assist, |
3696 | .inject_pending_vectors = vmx_intr_assist, | ||
3697 | .interrupt_allowed = vmx_interrupt_allowed, | 3696 | .interrupt_allowed = vmx_interrupt_allowed, |
3698 | .set_tss_addr = vmx_set_tss_addr, | 3697 | .set_tss_addr = vmx_set_tss_addr, |
3699 | .get_tdp_level = get_ept_level, | 3698 | .get_tdp_level = get_ept_level, |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index b81970b053b9..0890df9e88ff 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3171,10 +3171,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
3171 | 3171 | ||
3172 | if (vcpu->arch.exception.pending) | 3172 | if (vcpu->arch.exception.pending) |
3173 | __queue_exception(vcpu); | 3173 | __queue_exception(vcpu); |
3174 | else if (irqchip_in_kernel(vcpu->kvm)) | ||
3175 | kvm_x86_ops->inject_pending_irq(vcpu, kvm_run); | ||
3176 | else | 3174 | else |
3177 | kvm_x86_ops->inject_pending_vectors(vcpu, kvm_run); | 3175 | kvm_x86_ops->inject_pending_irq(vcpu, kvm_run); |
3178 | 3176 | ||
3179 | kvm_lapic_sync_to_vapic(vcpu); | 3177 | kvm_lapic_sync_to_vapic(vcpu); |
3180 | 3178 | ||